Actions18
Document → Delete
AI-generatedSummary
Delete a document within a specified namespace in Agentset by providing the Namespace ID and Document ID, optionally including a Tenant ID for the request.
Inputs
- Namespace ID (required) — The ID of the namespace (prefixed with ns_).
- Document ID (required) — The ID of the document to delete (prefixed with doc_).
- Options — Optional fields including Tenant ID to specify the tenant for the request.
Output shape
a single record confirming deletion (or containing error information)
The operation does not return the deleted document's data, typically returns confirmation or an empty response; errors are returned as a JSON object with an error message if the request fails.
Examples
Example 1: Delete a document from a namespace
Provide the Namespace ID (e.g., ns_123) and Document ID (e.g., doc_123) to delete that specific document; optionally specify a Tenant ID header for multi-tenant requests.