Runrunit

Interact with the Runrunit API

Documents → Delete

AI-generated

Summary

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.

Links

Discussion