Skip to content

Delete task

Endpoint

DELETE /organizations/{org_id}/tasks/{task_id}/delete

This permanently deletes a standalone (one-off) task along with its form fields and captured values. It can’t be undone.

Request

Replace {org_id} with your Organization ID and {task_id} with the task ID you want to permanently delete.

Headers

HeaderValue
AuthorizationBearer {your_access_token}
Acceptapplication/json
X-Tallyfy-ClientAPIClient

Body

No request body is needed.

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const taskId = 'ONE_OFF_TASK_ID_TO_DELETE';
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/tasks/${taskId}/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.status === 204) {
console.log(`Permanently deleted task ${taskId}.`);
return null;
} else {
return response.json()
.catch(() => response.text())
.then(errData => {
console.error(`Failed (${response.status}):`, errData);
throw new Error(`HTTP error ${response.status}`);
});
}
})
.catch(error => {
console.error(`Error deleting task ${taskId}:`, error.message);
});

Response

A successful deletion returns 204 No Content with no response body.

If the task doesn’t exist or you lack permission, you’ll get an error status (404, 403) with details in the response body.


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.

Tags > Delete tag

Tallyfy’s DELETE endpoint at /organizations/[org_id]/tags/[tag_id] permanently removes a tag and all its associations with templates and processes and steps and tasks — returning a 204 No Content response even if the tag ID does not exist.

Processes > Delete process

Tallyfy’s API lets admins permanently and irreversibly delete an already-archived process run along with all its associated tasks and data by sending a DELETE request to the /runs/[run_id]/delete endpoint with code samples provided in six languages.

Tasks > Reopen task

Tallyfy’s API lets you reopen a completed task by sending a DELETE request to the completed-tasks endpoint which effectively removes the completion record and resets the task status back to “in-progress” while clearing out completion-related fields like completed_at and completer_id.