Skip to main content

DELETE /api/tags/{tag_id}

Permanently deletes a tag. This endpoint is restricted to administrators. Because tasks and tags share a many-to-many relationship, deleting a tag only removes the tag record and its associations — the tasks themselves are not affected.

Authentication

Requires a valid Bearer access token. The authenticated user must have the admin role.
Authorization: Bearer <access_token>

Path Parameters

tag_id
integer
required
The ID of the tag to delete.

Response

success
boolean
true when the deletion succeeds.
message
string
Human-readable confirmation that the tag was deleted.

Errors

StatusDescription
401Missing or invalid access token.
403The authenticated user does not have the admin role.
404No tag exists with the given tag_id.

Example

curl -X DELETE "https://task-forge-gbd6h8gtg8hchve9.chilecentral-01.azurewebsites.net/api/tags/3" \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
  "success": true,
  "message": "Etiqueta eliminada con exito"
}

Build docs developers (and LLMs) love