DMS Delete Document Step

Use this step to delete a document in DMS.

Last published at: December 26th, 2025

Description:

This step removes a document from the DMS. 

 

Inputs

  • DocumentID - variable or global that stores the Document ID 
 

 

Returns

  • True – step executed successfully 
  • False - step failed to execute 
 

 

 

Usage:

 

 

 

Example:

Let’s build and execute the “DMSDeleteDocumentDef” example:

  • Create a new process definition named “DMSDeleteDocumentDef” and open it in designer mode. 
  • Drag a “updateVariables, DMSDeleteDocument” step to the canvas.
  • Connect the dots between the “Start” and other steps, as shown above. 
  • Define a variable or global to store the “Document ID”.
  • On the DMS page, navigate to and select the Document shown in this example. Click the column selector and choose the “ID” column to show. Copy-paste the “Document ID” value to the clipboard. 

 

  • Click the "updateVariables" step to configure its "Required" properties. Provide a name for the step. Click the Save button. Note: Click the "AI Predict" button to have Copilot add new process steps that match your process description. 

 

  • Click the "updateVariables" step to configure its "Optional" properties. Provide a variable reference to hold the “Document ID” value. Copy-paste the value from the clipboard. Click the Save button. 

 

  • Click the "DMSDeleteDocument" step to configure its "Required" properties. Provide a name for the step. Provide a variable or global reference that holds the “Document ID”. Click the Save button. Note: Click the "AI Predict" button to have Copilot add new process steps that match your process description. 

 

  • The “Logging” setting configuration is necessary for documentation and also measures workflow progress and completion percentage. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.

 

  • Save the process definition, create a new instance, and execute it. Verify that the process instance status is “completed” after deleting the document. 

 

  • On the DMS page, select the folder to view the deleted document. 

 

  • On the DMS page, select the parent folder. Click the ellipsis button to access context features, then select the “View History” option. 

 

  • The “View History” pages show the message from the deleted document.

 

  • Select the parent folder, then click View > Recycle Bin.

 

  • The “DMS Recycle Bin” page displays the document. 

 

  • Select the document, then click the “Actions” menu to access the “Restore, Destroy, and Empty” features. The “Restore” feature restores the document to its previous state. The “Destroy” feature removes the item, and the “Empty” feature removes all items in the Recycle Bin. 

 

 

Definition Sample:

You may download the sample definition(s) from the link here and later import them (drag-and-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page. 

Note: Please verify and complete any missing configuration steps after import, such as file path references and database connections. Then, save the definition to confirm the changes. 

Click here to download the sample file.