Actions92
- User Actions
- Task Actions
- Add Comment
- Add Manual Work Period
- Change Board
- Change Project
- Change Time Worked
- Change Type
- Clone
- Complete Workflow Step
- Create
- Create Assignments
- Delete
- Deliver
- Get
- Get Fields
- Get Form Answers
- Get Many
- Get Subtasks
- Mark As Urgent
- Move
- Move To Next Stage
- Move To Top
- Pause
- Play
- Reestimate
- Reopen
- Reposition
- Share
- Undo Workflow Step
- Unmark As Urgent
- Unshare
- Update
- Update Comment
- Team Actions
- Projects Actions
- Board Stages Actions
- Comments Actions
- Documents Actions
- Checklists Actions
- Checklist Items Actions
- Clients Actions
- Descendants Actions
- Time Worked Actions
Documents → Delete
AI-generatedSummary
Delete a specified document from the Runrunit system by its document ID, optionally previewing the curl command instead of executing the request.
Inputs
- Document ID (required) — The unique identifier of the document to delete.
- Mode — Choose whether to execute the API request to delete the document or only preview the corresponding curl command.
Output shape
A JSON object representing the API response after attempting to delete the specified document.
The output depends on the API's response to the delete request. When running in preview mode, no deletion occurs and instead the curl command is returned for review.
Examples
Example 1: Delete a document by its ID
Set the 'Document ID' to the target document's ID and 'Mode' to 'Execute request'. Upon execution, the document will be deleted and the response returned.
Example 2: Preview the curl command to delete a document
Set the 'Document ID' to the target document's ID and 'Mode' to 'Preview curl'. The node will return the curl command that would be run without performing deletion.