Skip to content

Delete a document

DELETE
/api/Documents/{id}
curl --request DELETE \
--url 'https://app.docstosheets.com/api/Documents/example?deleteFromSpreadsheet=true' \
--header 'Authorization: Bearer <token>'

Deletes the document along with its stored file and extraction.

id
required
string

The document ID.

mailboxId
string

The mailbox ID (partition key).

deleteFromSpreadsheet
boolean
default: true

When false, the document’s rows stay in the export workbook as customer-owned rows (their sync keys are blanked) instead of being removed by the next sync.

No content on success.

Media type application/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
nullable
Example generated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}
Media type application/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
nullable
Example generated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}