Skip to main content
Formalingo

Archiving & Deleting Documents

Soft-delete or permanently delete documents via the API.

Archiving & Deleting Documents

DELETE/api/v1/documents/{id}
Required scope:delete:documents

Soft delete (default)

Moves the document to Trash. Original file is removed from storage. Existing signing links stop working.

curl -X DELETE https://formalingo.com/api/v1/documents/DOC_ID \
  -H "Authorization: Bearer af_live_YOUR_KEY"

Permanent delete

Permanently deletes the document and all associated data (fields, submissions, audit events):

curl -X DELETE "https://formalingo.com/api/v1/documents/DOC_ID?permanent=true" \
  -H "Authorization: Bearer af_live_YOUR_KEY"

Warning: Permanent deletion cannot be undone.

The delete:documents scope is required for both operations.

On this page