curl -X DELETE 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/' \
-H 'Authorization: Bearer YOUR_API_KEY'
curl -X DELETE 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'X-Anyformat-Skip-Deletion-Window: true'
import requests
workflow_id = "0686bb97-8c30-70f0-8000-97669e000eb8"
url = f"https://api.anyformat.ai/v3/workflows/{workflow_id}/"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
response = requests.delete(url, headers=headers)
assert response.status_code == 204
Workflows
Delete Workflow
Delete a workflow and all associated document packets and runs
DELETE
/
v3
/
workflows
/
{workflow_id}
/
curl -X DELETE 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/' \
-H 'Authorization: Bearer YOUR_API_KEY'
curl -X DELETE 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'X-Anyformat-Skip-Deletion-Window: true'
import requests
workflow_id = "0686bb97-8c30-70f0-8000-97669e000eb8"
url = f"https://api.anyformat.ai/v3/workflows/{workflow_id}/"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
response = requests.delete(url, headers=headers)
assert response.status_code == 204
Rate limit tier: general, 600 requests/min. See Rate limits.
Deletes a workflow along with all of its document packets and runs. The workflow leaves the API at once, and its document packets and runs are then deleted permanently, as a document packet delete deletes them. The workflow’s own files, such as its lookup files, stay in storage for a grace window of 14 days, or 24 hours for an organization with zero data retention, before they become eligible for a permanent purge. The API offers no call that undoes a delete.
Returns
204 No Content on success. An unknown id returns 404, as does a workflow belonging to another organization.
Skipping the deletion window
By default the deletion’s record is kept for a deletion window of 14 days, or 24 hours for an organization with zero data retention, and its deletion certificate is issued once that window ends. SendX-Anyformat-Skip-Deletion-Window: true to forget the deleted workflow, its document packets and its runs at once instead, so its certificate is issued within about ten minutes. Any other value, or no header, keeps the window. Use it when you need the certificate now, for example to test deletion end to end.
curl -X DELETE 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/' \
-H 'Authorization: Bearer YOUR_API_KEY'
curl -X DELETE 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'X-Anyformat-Skip-Deletion-Window: true'
import requests
workflow_id = "0686bb97-8c30-70f0-8000-97669e000eb8"
url = f"https://api.anyformat.ai/v3/workflows/{workflow_id}/"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
response = requests.delete(url, headers=headers)
assert response.status_code == 204
Authorizations
Headers
Response
Successful Response

