Permanently deletes a label and clears its direct task assignments, favorites and comment label references.
https://api.doboard.com/{account_id}/label_delete
account_id is the numeric organization identifier associated with the user session.
GET, POST.
For GET, send parameters in the query string. For POST, use application/x-www-form-urlencoded.
POST is recommended because the method permanently deletes data.
Requires a valid user session_id. Guest sessions are not supported.
The method does not require administrator or project manager permissions.
Public task tokens, public project tokens and MCP tokens do not provide access to this method.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
session_id |
string | Yes | — | Authenticated session ID. |
label_id |
int | Yes | — | Existing label identifier to delete. |
The identifier is converted to an integer. A missing or empty value, including 0, is rejected.
After deleting the label, the method:
Tasks and comments themselves are preserved. Clearing a comment’s label does not change the comment text.
The operation accepts existing labels regardless of whether their status is ACTIVE, ARCHIVED or REMOVED.
POST /42/label_delete HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&label_id=301
Equivalent cURL request:
curl --request POST 'https://api.doboard.com/42/label_delete' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'session_id=YOUR_SESSION_ID' \
--data-urlencode 'label_id=301'
All identifiers in examples are illustrative.
{
"data": {
"operation_status": "SUCCESS",
"label_id": 301
}
}
| Field | Description |
|---|---|
data.operation_status |
SUCCESS when deletion completes. |
data.label_id |
Identifier of the deleted label. |
| HTTP Code | error_no |
Message | Description |
|---|---|---|---|
401 |
401 |
session_id Unknown |
Missing or invalid session. |
403 |
403 |
Permission denied |
The authentication context is not permitted to call this method, including guest sessions. |
200 |
2801 |
label_id is required |
Label ID is missing or empty. |
200 |
2802 |
Label Not Found |
No label matches the supplied ID. |
200 |
0 |
Internal API Error |
The label could not be deleted. |
Example not-found response:
{
"data": {
"operation_status": "FAILED",
"operation_message": "Label Not Found"
},
"error_message": "Label Not Found",
"error_no": 2802
}
| Operation | Result |
|---|---|
label_update with status=ARCHIVED |
Retains the label, task assignments and favorites. |
label_update with status=REMOVED |
Retains the label record, but clears direct task assignments and favorites when transitioning to that status. |
label_delete |
Permanently deletes the label and also clears comment label references. |
A label retained by label_update can be returned to ACTIVE. A label deleted through label_delete cannot be restored through this API.
2802, Label Not Found.