curl -X DELETE 'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/regulatory-reports/5ec00000-0000-4000-8000-000000000007/' \
-H 'x-api-key: YOUR_API_KEY'{
"confirm_delete": [
"This field is required to delete a finalized report."
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "This report is being deleted. Retry deleting it to finish erasing its files.",
"code": "report_deletion_pending"
}{
"detail": "The report files could not be erased. Please retry deleting the report.",
"code": "report_storage_unavailable"
}Delete Report
Delete a draft or finalized regulatory report, including its copied narrative, transaction links, goAML XML and PDF.
curl -X DELETE 'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/regulatory-reports/5ec00000-0000-4000-8000-000000000007/' \
-H 'x-api-key: YOUR_API_KEY'{
"confirm_delete": [
"This field is required to delete a finalized report."
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "This report is being deleted. Retry deleting it to finish erasing its files.",
"code": "report_deletion_pending"
}{
"detail": "The report files could not be erased. Please retry deleting the report.",
"code": "report_storage_unavailable"
}What is deleted
The report, its copied narrative, reasons and other report fields, its links to transactions, and its generated goAML XML and PDF. Every stored version of those files is erased. The report disappears from report lists, and previously issued download URLs stop working. The case, transactions, people and companies are not deleted. The report does not take their data with it. Deletion is permanent and irreversible.Confirmation
A draft or validated report is deleted without a request body. Deleting a finalized report requires an explicit confirmation:{ "confirm_delete": true }
400 and nothing is deleted.
If the files cannot be erased right now
A503 with code: report_storage_unavailable means the report files could not be erased right now. The report is still in place, so repeat the request. A 409 with code: report_deletion_pending means a delete of this report is already under way: repeat the request to finish it.
Resolve a blocked deletion
If a person, company, transaction, case or session delete returns409 with code: in_filed_report, the response names the reports that hold the data. Delete each report here, then repeat the blocked delete.
Related
Authorizations
Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is missing, wrong, revoked or expired; 403 means the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.
Path Parameters
Organization UUID.
Application UUID.
Report UUID.
"5ec00000-0000-4000-8000-000000000007"
Body
Required only for a finalized report.
Set to true to confirm that a finalized report and its generated files are deleted permanently.
Response
Report deleted, including its generated files.