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

Tallyfy’s API lets you soft-delete (archive) a running process via a DELETE request so it disappears from default views while preserving all tasks and data intact and can be fully restored later using the activate endpoint.

Code Samples > Managing processes (Runs)

The Tallyfy API manages processes (called “runs”) through org-scoped endpoints that cover launching from templates or as empty containers and listing and filtering and fetching details and updating and archiving and restoring and permanently deleting processes along with retrieving activity feeds for audit trails.

Templates > Archive or delete template

Tallyfy’s API supports removing templates through a two-step process: first archiving (soft delete) via a DELETE request to the checklist endpoint which hides the template while preserving data and allowing restoration and then permanently deleting it via a second DELETE request with an extra /delete path segment which irreversibly removes all associated data and requires admin permissions.

Tasks > Archive task

Tallyfy’s API lets you soft-delete (archive) a standalone one-off task by sending a DELETE request to /organizations/[org_id]/tasks/[task_id] which hides it from default views while preserving all data and allowing restoration later through a separate restore endpoint.