Last updated 3 years ago
DELETE https://api.complycube.com/v1/documents/:id
DELETE
https://api.complycube.com/v1/documents/:id
Deletes an existing document and all associated attachments. You will not be able to delete a document once it has been used to perform a check.
curl -X DELETE https://api.complycube.com/v1/documents/{:documentId} \ -H 'Authorization: <YOUR_API_KEY>'
const { ComplyCube } = require("@complycube/api"); const complycube = new ComplyCube({ apiKey: "<YOUR_API_KEY>" }); await complycube.document.delete("DOCUMENT_ID");
from complycube import ComplyCubeClient cc_api = ComplyCubeClient(api_key='<YOUR API KEY>') cc_api.documents.delete('DOCUMENT_ID')
use ComplyCube\ComplyCubeClient; $ccapi = new ComplyCubeClient('<YOUR API KEY>'); $ccapi->documents()->delete('DOCUMENT_ID', 'DOCUMENT_SIDE');
id
string
The ID of the document.
Authorization
The live or sandbox API key.