Document AI — DMS

Delete document

po_documents_delete: Delete one or more documents. mode=trash (default): soft-delete to recycle bin on business/compliance workspaces; on standard-tier workspaces the API coerces trash to instant (permanent, no recycle bin)...

post/documents/document-delete

Request

  • Base URL: https://api.paperoffice.ai/latest
  • URL: https://api.paperoffice.ai/latest/documents/document-delete
  • Auth: HTTP bearer

Response

Success

status'success' | 'error' required

Operation result status

messagestring

Human-readable status message

deleted_countinteger

Number of deleted documents

not_found_countinteger

Number of POFIDs not found

error_countinteger

Number of failed deletions

cleanup_queuedinteger

Number of entries enqueued for deletion

mode'trash' | 'instant'

Delete mode: trash or instant (permanent)

not_found_documentsstring[]

POFIDs not found (optional)

deleted_foldersstring[]

Deleted document-folder IDs (optional)

processing_timestring

Request processing time (e.g. "123.45ms")

Changes

No recorded changes to this operation across all 1 revision of this API.