Check which documents you may delete.
The Delete dialog's check, one answer per document sent. Needs Bulk Delete Documents: can_delete is true when you can read the document and hold Delete Other Users Documents, or Delete Self Owned Documents on a document you own. A document that does not exist or that you cannot read answers false, as the Portal's does. is_blocked_by_sub_workflow is true when a group sub-workflow is still running on the document, which refuses the delete until its workflows are cancelled (cancel_document_workflows). Changes nothing.
| |
|---|
| Scope | documents:read |
| Asynchronous | No |
| MCP tool | check_document_delete |
| Portal permissions | bulk_delete_documents |
Parameters
| Name | In | Type | Required | Description |
|---|
Docwize-Version | header | string (date) | Optional | |
Request body
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
DocumentDeleteCheck
| Field | Type | Required | Description |
|---|
can_delete | boolean | Required | Whether you may delete the document: false when it is not readable by you, as well as when you hold no delete permission for it. |
document_id | string | Required | The ID as sent. |
is_blocked_by_sub_workflow | boolean | Required | Whether a group sub-workflow is still running on the document; the delete is refused until it is cancelled. |
| Field | Type | Required | Description |
|---|
document_ids | array of string | Required | The documents to check, up to 1000. |
DocumentDeleteCheckResult
| Field | Type | Required | Description |
|---|
documents | array of DocumentDeleteCheck | Required | One entry per document sent, in the order sent. |