# Delete a document Delete records of a created document object Endpoint: DELETE /documents/{document_id} Security: Your API key ## Path parameters: - `document_id` (string, required) A unique identifier of a document, that is assigned by our system after a document object was created with a “Create a document” request Example: "5f9aeb5e1f25e2441d182f56b6dcbfac12dd" ## Response 200 fields (application/json): - `document_id` (string) A unique identifier of a document, that is assigned by our system after a document object was created with a “Create a document” request ## Response 404 fields (application/json): - `type` (string) Example: "not_found" - `errors` (array) - `errors.parameter` (string) Example: "document_id" - `errors.message` (string) Example: "Document was not found" ## Response 409 fields (application/json): - `type` (string) Example: "delete_denied" - `errors` (array) - `errors.parameter` (string) Example: "document_id" - `errors.message` (string) Example: "Document under verification can not be deleted" ## Response 422 fields (application/json): - `type` (string) Example: "validation" - `errors` (array) - `errors.parameter` (string) Example: "document_id" - `errors.message` (string) Example: "Document ID is not valid." ## Response 500 fields (application/json): - `type` (string) Example: "internal_server" - `errors` (array)