Skip to main content
DELETE

Overview

Delete a document that was uploaded through the API. Documents the creditor or incaseof.law added cannot be deleted through the API (403). A document the incaseof.law team has released to the debtor at any time, or that belongs to a claim taken to court — the creditor approved the court step, or a filing was recorded after the document was uploaded — is not erased: it disappears from the API and from every portal but is kept for the incaseof.law team (data.retained: true). Any other document is deleted permanently (data.retained: false).
Permanent Action: A deleted document cannot be recovered through the API. Make sure you want to delete the document before proceeding.

Authentication

Requires API Token authentication via Bearer token.

Request

string
required
UUID of the document to delete

Response

boolean
Indicates if the deletion was successful
string
Confirmation message
boolean
true when the document was kept for the incaseof.law team (released to the debtor or taken to court)

Notes

  • A permanent deletion removes both the database record and the file from storage; a retained document keeps both for the incaseof.law team
  • This action is logged in the claim’s activity log
  • Cannot be undone through the API - consider downloading the file first if you need to keep a copy