Skip to content

Delete process

Endpoint

DELETE /organizations/{org_id}/runs/{run_id}/delete

Permanently deletes an archived process (run) and all its related data — tasks, comments, form field values, attachments, tags, and watchers.

Request

Replace {org_id} with your Organization ID and {run_id} with the run ID to delete.

Headers

  • Authorization: Bearer {your_access_token}
  • Accept: application/json
  • X-Tallyfy-Client: APIClient

Body

No request body is needed.

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const runId = 'PROCESS_RUN_ID_TO_DELETE';
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/runs/${runId}/delete`;
const headers = new Headers();
headers.append('Authorization', `Bearer ${accessToken}`);
headers.append('Accept', 'application/json');
headers.append('X-Tallyfy-Client', 'APIClient');
fetch(apiUrl, {
method: 'DELETE',
headers: headers
})
.then(response => {
if (response.ok) {
console.log(`Permanently deleted process ${runId}. Status: ${response.status}`);
return response.text().then(text => {
if (text) {
try { return JSON.parse(text); }
catch (e) { return null; }
}
return null;
});
} else {
return response.json()
.catch(() => response.text())
.then(errData => {
console.error(`Failed (${response.status}):`, errData);
throw new Error(`HTTP error ${response.status}`);
});
}
})
.then(data => {
if (data) console.log(JSON.stringify(data, null, 2));
})
.catch(error => console.error('Delete failed:', error.message));

Response

A successful permanent deletion returns 200 OK with an empty response body. The process and all related data have been permanently removed.

StatusMeaning
200Process permanently deleted
403You don’t have admin role permissions
404Process not found (wrong ID or not archived)
422Process isn’t archived yet — archive it first

Processes > Archive process

Archive a Tallyfy process (run) using a DELETE request, which soft-deletes it from default views while preserving all data for future restoration.

Tasks > Delete task

A DELETE endpoint permanently removes standalone tasks while preserving process-related tasks that can only be deleted through their parent process run deletion.

Tags > Delete tag

Permanently deletes a tag and all its associations from your organization. This can’t be undone - the API returns 204 No Content on success.