Skip to main content
DELETE
cURL
Requires write:memory for documents, or write:operational-rules and an API key with an owner for rules. For a document, reason is required. Set purge=true to delete an eligible file permanently. Policy, journal and artifact files cannot be purged. With kind=rule, send rule_id instead of path; reason and purge do not apply. Deleting a rule does not change earlier classifications or journals.
cURL

Authorizations

X-API-Key
string
header
required

Your organization API key. Some operations also need a key that is associated with a user; their pages say so.

Query Parameters

kind
enum<string>
default:document

document (the default) for a memory document, or rule for an operational rule.

Available options:
document,
rule
path
string

Document only, and required for documents. Relative file path, such as knowledge/vendors.md.

Minimum string length: 1
reason
string

Document only, and required for documents. Why the document is deleted.

Minimum string length: 1
purge
boolean
default:false

Document only. Delete permanently instead of moving to .trash/. Refused for policy/, journal/ and artifacts/.

domain
enum<string>

Rule only. Limits the lookup to one rule domain.

Available options:
classification,
cash_application
rule_id
string

Rule only, and required for rules. Get it from List memory with kind=rule.

Required string length: 1 - 128

Response

The document was deleted.

deleted
boolean
required

true when the file was deleted.

path
string
required

Relative file path.

purged
boolean
required

True when the file was removed permanently rather than moved to .trash/.

trash_path
string

Where a soft-deleted file now lives. Absent on a purge.