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

Archive a standalone task using a DELETE request, which soft-deletes it so it’s hidden from default views but can be restored later.

Processes > Delete process

The DELETE endpoint permanently removes an archived process and all its associated data including tasks, comments, and form values with no recovery option.

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.

Files > Delete file

A DELETE endpoint that permanently removes an uploaded file from a task or kick-off form field using /organizations/[org_id]/file/[asset_id] and returns a 200 OK status with an empty response body.