Skip to content
Developers

Delete task

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.

Only an administrator, or the member who created the task, can delete it this way. A Light member can’t, even for a task they created. To archive a one-off task instead, which you can undo, send DELETE /organizations/{org_id}/tasks/{task_id}.

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

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

No request body is needed.

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

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

If the task doesn’t exist, you’ll get 404. If you aren’t allowed to delete it, you’ll get 403 and the task stays as it was. When you’re neither an administrator nor the task’s creator, or you’re a Light member, the message is Only an administrator or the member who created this task can permanently delete it.


Tasks > Archive task

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

Tags > Delete tag

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