Skip to content

Delete process

Administrators only

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

This permanently deletes an archived process (run). All its related data goes too. That means its tasks, comments, form field values, attachments, tags and watchers.

Replace {org_id} with your organization ID. Replace {run_id} with the ID of the run to delete.

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

You don’t need a request body.

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));

You’ll get 200 OK. The response body is empty. The process and all its related data are gone for good.

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…