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

Tags > Delete tag

Tallyfy’s DELETE API endpoint at /organizations/[org_id]/tags/[tag_id] permanently removes a…

Tasks > Archive task

Tallyfy’s API lets you soft-delete (archive) a standalone one-off task by sending a DELETE…