curl -X DELETE 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/' \
-H 'Authorization: Bearer YOUR_API_KEY'
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
{
"error": "The request failed validation.",
"detail": "The request failed validation.",
"error_code": "VALIDATION_ERROR",
"retryable": false,
"request_id": "req_abc123"
}{
"error": "Authentication failed.",
"detail": "Authentication failed.",
"error_code": "AUTH_FAILED",
"retryable": false,
"request_id": "req_abc123"
}{
"error": "You do not have access to this resource.",
"detail": "You do not have access to this resource.",
"error_code": "ACCESS_DENIED",
"retryable": false,
"request_id": "req_abc123"
}{
"error": "The resource does not exist.",
"detail": "The resource does not exist.",
"error_code": "NOT_FOUND",
"retryable": false,
"request_id": "req_abc123"
}{
"error": "This is a system workflow and it cannot change.",
"detail": "This is a system workflow and it cannot change.",
"error_code": "IMMUTABLE_WORKFLOW",
"retryable": false,
"request_id": "req_abc123"
}{
"error": "Rate limit exceeded — retry after backoff.",
"detail": "Rate limit exceeded — retry after backoff.",
"error_code": "RATE_LIMITED",
"retryable": true,
"request_id": "req_abc123"
}{
"error": "An internal error stopped the request.",
"detail": "An internal error stopped the request.",
"error_code": "INTERNAL_ERROR",
"retryable": true,
"request_id": "req_abc123"
}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'
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
{
"error": "The request failed validation.",
"detail": "The request failed validation.",
"error_code": "VALIDATION_ERROR",
"retryable": false,
"request_id": "req_abc123"
}{
"error": "Authentication failed.",
"detail": "Authentication failed.",
"error_code": "AUTH_FAILED",
"retryable": false,
"request_id": "req_abc123"
}{
"error": "You do not have access to this resource.",
"detail": "You do not have access to this resource.",
"error_code": "ACCESS_DENIED",
"retryable": false,
"request_id": "req_abc123"
}{
"error": "The resource does not exist.",
"detail": "The resource does not exist.",
"error_code": "NOT_FOUND",
"retryable": false,
"request_id": "req_abc123"
}{
"error": "This is a system workflow and it cannot change.",
"detail": "This is a system workflow and it cannot change.",
"error_code": "IMMUTABLE_WORKFLOW",
"retryable": false,
"request_id": "req_abc123"
}{
"error": "Rate limit exceeded — retry after backoff.",
"detail": "Rate limit exceeded — retry after backoff.",
"error_code": "RATE_LIMITED",
"retryable": true,
"request_id": "req_abc123"
}{
"error": "An internal error stopped the request.",
"detail": "An internal error stopped the request.",
"error_code": "INTERNAL_ERROR",
"retryable": true,
"request_id": "req_abc123"
}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.
curl -X DELETE 'https://api.anyformat.ai/v3/workflows/0686bb97-8c30-70f0-8000-97669e000eb8/' \
-H 'Authorization: Bearer YOUR_API_KEY'
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

