Documents
Delete documents (bulk)
Delete multiple documents in one request by sending a JSON array. Each element must be an object with an id field (the document ID, same value as elsewhere in the Documents API).
The caller must have permission to delete each document. Documents must belong to the authenticated workspace.
This batch operation returns 200 OK with a JSON body containing an id array of deleted document IDs. That differs from Delete Document (DELETE /public/v1/documents/{id}), which returns 204 No Content for a single document.
delete/public/v1/documents
Request
- Base URLhttps://api.pandadoc.com
- Auth
- API key in header Authorization
- or OAuth 2Authorization codehttps://app.pandadoc.com/oauth2/authorizeToken URLhttps://api.pandadoc.com/oauth2/access_token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
[
{
"id": "BhVzRcxH9Z2LgfPPGXFUBa"
}
]Response
OK — documents were deleted. Response lists deleted document IDs.
Changes
No recorded changes to this operation across all 2 revisions of this API.