Configure a Delete activity

Use the following procedure to configure a Delete activity.

  1. Add an activity to the map.

    By default, the Configuration tab is open in the properties panel of the activity.

  2. Change the default Name of the activity to something meaningful.
  3. On the Type list, select Capture > Delete.
  4. On the Input document/folder list, select a document or folder variable as an input to the activity. See Create a document variable and Create a folder variable.
  5. To suspend the job when the deletion fails, select Suspend job if deletion fails. If the deletion fails at runtime, the job is updated with the reason for suspension. (Default: Clear)
    If you keep the default setting clear and deletion fails, the activity is still completed, and the documents or folder remain in the same location. To display an error message when the job suspends, do the following:
    1. To display a message when the deletion fails and the job is not suspended, on the Error message variable list, select a string variable.
    2. To display a message that the deletion is successful, on the Deletion succeeded list, select a Boolean variable.
  6. Select Mark completed to distinguish between documents currently being processed and documents that have completed processing. Keep it clear if you do not want the Delete activity to be the end of document processing.
    This property is for reporting purposes and is specifically useful when you delete invalid documents that you do not want to run analytics on.
  7. Save the process map.