Skip to content

Delete tag

Endpoint

DELETE /organizations/{org_id}/tags/{tag_id}

This permanently deletes a tag and removes all its associations with templates, processes, steps, and tasks. This action can’t be undone.

Request

Replace {org_id} with your Organization ID and {tag_id} with the tag’s ID.

Headers

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

Body

You don’t need a request body.

Code samples

const accessToken = 'YOUR_PERSONAL_ACCESS_TOKEN';
const orgId = 'YOUR_ORGANIZATION_ID';
const tagId = 'TAG_ID_TO_DELETE';
const apiUrl = `https://go.tallyfy.com/api/organizations/${orgId}/tags/${tagId}`;
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(`Tag ${tagId} deleted permanently.`);
} else if (!response.ok) {
return response.json().then(errData => {
console.error(`Failed to delete tag ${tagId}:`, errData);
throw new Error(`HTTP error! status: ${response.status}`);
});
}
})
.catch(error => {
console.error(`Error deleting tag ${tagId}:`, error.message);
});

Response

A successful delete returns 204 No Content with an empty response body. The tag and all its associations are permanently removed.

If the tag ID doesn’t exist, the endpoint still returns 204 — it won’t error on a missing tag.


Tasks > Delete task

Tallyfy’s API lets you permanently delete a standalone one-off task along with its form fields…

Groups > Delete group

Tallyfy’s DELETE endpoint at /organizations/[org_id]/groups/[group_id] permanently removes a…