Delete document


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

Code snippet

curl -X 'DELETE' \ '' \
     -H 'X-API-KEY: {your API key}' 
var apiClient = new ApiClient("", "{apikey}");
var documentClient = new DocumentClient(apiClient);
documentClient.DeleteDocument("8b637de3-xxxx-xxxx-xxxx-6a4fdd0xxxx", false);

import requests

url = ""
headers = {
response = requests.request("DELETE", url, headers=headers, data=payload)
const axios = require('axios');
const response = await axios.delete('', {
    params: {

        'documentId': 'documentId',
        '&deletePermanently': 'false'


    headers: {

        'X-API-KEY': 'API_KEY'


Query parameters

documentIdstringRequiredThe ID of an existing document.
deletePermanentlybooleanTo permanently delete the document, you need to set this parameter to true. By default, the document is moved to the Trash, and the default value for this parameter is false.

Example responses

204 No Content