Documents
Delete Document
Changed onDelete a document by ID.
delete/public/v1/documents/{id}
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.
Path parameters
idstring required
Document ID
Query parameters
foreverboolean
Set to false to soft-delete the document (move it to the Trash Bin, where it can be restored) instead of deleting it permanently. Defaults to true.
Response
No content
Changes
- info
added the new optional
queryrequest parameterforever
- info