Delete Document Rule
The Delete Document rule is used to delete the current document from the database. It is a powerful tool for maintaining your document lifecycle.
How to Add and Configure the Delete Document Rule
To add an action rule to an action in your workflow, follow these simple steps:
- Open the desired action by double-clicking it in the workflow.
- If required, scroll down to access the Rules section.
- Click the
button next to Rules. - The rule configuration pane will open.
- Select Delete Document from the Type dropdown.
- Enter a readable Label for the action rule. This label will be displayed in the logs.
- Enter a Description for the action rule.
- Click Save to finalize the rule configuration.
- Finally, click Save in the action properties pane to apply the changes.
Rule Properties
The Delete Document rule does not have any additional properties to configure beyond the standard Type, Label, Description, and Execute Condition.
Important Considerations
When using the Delete Document rule, it's important to remember that only a few other rules can be executed after it. Specifically, only Show Notification, Go to URL, and Execute Script rules can be executed after a Delete Document rule. Other rules assume that the document still exists in the database, and their execution will likely fail.