Delete partially completed applications

Partial applications are those applications that users save without submitting or save and resume later. This section explains how to set up Civic Platform to remove all partially completed applications from Civic Platform. These configuration steps do not affect completed applications.

This setup requires setting a standard choice and creating a script. The script is then set up as a batch job. The batch job removes partially completed applications from Civic Platform on a regular schedule that you define. By purging the partial applications, it frees up disk space and it makes it more efficient for users to locate completed applications. Upon deleting partial applications from Civic Platform, the applications cannot be retrieved.

Use this scenario to further understand how the standard choice and batch job scheduling handle removing partial applications from Civic Platform.

To remove partial applications that are older than 30 days, set the value of the standard choice PARTIALLY_COMPLETED_CAP_PURGE_DAYS to 30. This is the number of days that partially completed applications remain in Civic Platform before Civic Platform removes them. If today is April 1, 2008, and the Value is 30 days, then all partial applications created on March 31, 2008 (which is day number 1 in counting) through March 2 remain in Civic Platform. Civic Platform removes partial applications created on March 1 and earlier. Civic Platform removes the partial applications when the scheduled batch job runs. Setting the batch job to execute the script on a daily basis removes all partial applications that were created on day 31 (March 1, in this case) and earlier.

To delete partially completed applications, there are three major steps: