Delete document

delete/v1/document/delete

Delete the specific document. The specific document will be moved to trash. After 30 days, the document will be permanently deleted from the BoldSign Application.

Code snippet

curl -X 'DELETE' \ 'https://api.boldsign.com/v1/document/delete?documentId=documentId' \
     -H 'X-API-KEY: {your API key}' 
var apiClient = new ApiClient("https://api.boldsign.com", "{apikey}");
var documentClient = new DocumentClient(apiClient);
documentClient.DeleteDocument("8b637de3-xxxx-xxxx-xxxx-6a4fdd0xxxx");

import requests

url = "https://api.boldsign.com/v1/document/delete?documentId=documentId"
payload={}
headers = {
  'X-API-KEY': 'API_KEY'
}
response = requests.request("DELETE", url, headers=headers, data=payload)
print(response.text)
const axios = require('axios');
const response = await axios.delete('https://api.boldsign.com/v1/document/delete', {
    params: {

        'documentId': 'documentId'

    },

    headers: {

        'X-API-KEY': 'API_KEY'

    }
});

Request body

Name, Type, RequiredDescription
documentIdstringRequiredThe ID of an existing document

Example responses

204 No Content