Skip to content

Archive or delete template

There are two ways to remove a template via the API:

  1. Archive (soft delete): Hides the template but keeps its data. Processes already launched from it keep running. Archived templates can be restored, and restoring brings back the template’s steps, form fields, automations and folder. One thing does not come back. If other templates embedded this one in their text, archiving removes those embedded blocks from them permanently, and restoring does not put them back. You would need to add the embed again by hand. This only affects templates that embed other templates, which is rare.
  2. Delete (permanent): Permanently removes the template and its associated data. This can’t be undone. The template must be archived first before it can be permanently deleted.

DELETE /organizations/{org_id}/checklists/{checklist_id}

This archives the specified template (soft delete).

Replace {org_id} with your Organization ID and {checklist_id} with the template ID.

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

No request body is needed.

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const checklistId = 'TEMPLATE_ID_TO_ARCHIVE';
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/checklists/${checklistId}`;
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) {
return response.json().then(errData => {
throw new Error(`HTTP error! status: ${response.status}, message: ${JSON.stringify(errData)}`);
}).catch(() => {
throw new Error(`HTTP error! status: ${response.status}`);
});
}
console.log(`Successfully archived template ${checklistId}. Status: ${response.status}`);
return response.json();
})
.then(data => {
if (data) {
console.log('Response:', JSON.stringify(data, null, 2));
}
})
.catch(error => {
console.error('Error archiving template:', error);
});

A successful archive returns 200 OK with a confirmation message and a list of deleted references (e.g., from automations or recurring jobs that referenced this template).

{
"message": "The Template was deleted, and references were also deleted from:",
"deleted_references": {}
}

DELETE /organizations/{org_id}/checklists/{checklist_id}/delete

Note the extra /delete path segment compared to the archive endpoint.

Replace {org_id} and {checklist_id} as appropriate.

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

No request body is needed.

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const checklistId = 'TEMPLATE_ID_TO_DELETE';
// Template must already be archived before permanent deletion
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/checklists/${checklistId}/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) {
return response.json()
.catch(() => response.text())
.then(errData => {
console.error(`Failed to delete template. Status: ${response.status}`, errData);
throw new Error(`HTTP error! status: ${response.status}`);
});
}
console.log(`Successfully deleted template ${checklistId}. Status: ${response.status}`);
return response.json();
})
.then(data => {
if (data) {
console.log('Response:', JSON.stringify(data, null, 2));
}
})
.catch(error => {
console.error(`Error deleting template ${checklistId}:`, error.message);
});

A successful permanent deletion returns 200 OK. The response body contains a confirmation message and a list of deleted references. If the template isn’t archived yet, you’ll get an error - you must archive it first.

{
"message": "The Template was deleted, and references were also deleted from:",
"deleted_references": {}
}

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…