You are here:
Run the Document Generation Process Cleaner Utility in Developer Console
Use the Document Generation Process Cleaner Utility to either delete the document generation process records and their associated token data content documents or only the token data content documents.
-
Click
to open the quick access menu, and then select Developer
Console.
- From the Debug menu, select Open Execute Anonymous Window.
-
Copy one of the statements in the Enter Apex Code dialog and specify the start
and end times.
-
To call cleanDocumentGenerationProcessAndContentDocument:
DocumentGenerationProcessCleanerUtility obj = new DocumentGenerationProcessCleanerUtility(); DateTime starttime= DateTime.newInstanceGmt(2022,11,08,18,49,48); DateTime endtime= DateTime.newInstanceGmt(2022,11,09,01,20,48); obj.cleanDocumentGenerationProcessAndContentDocument(starttime,endtime); -
To call cleanContentDocument use:
DocumentGenerationProcessCleanerUtility obj = new DocumentGenerationProcessCleanerUtility(); DateTime starttime= DateTime.newInstanceGmt(2022,11,08,18,49,48); DateTime endtime= DateTime.newInstanceGmt(2022,11,09,01,20,48); obj.cleanContentDocument(starttime,endtime);
-
To call cleanDocumentGenerationProcessAndContentDocument:
- Select the statement you pasted.
-
Click Execute Highlighted.
You can view the batch job ID and the count of successfully deleted records in the log files.
- Close the Developer Console.

