Permanently deletes a label group and clears its label membership, task assignments and favorites.
https://api.doboard.com/{account_id}/label_group_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. |
group_id |
int | Yes | — | Existing label group identifier to delete. |
The identifier is converted to an integer. A missing or empty value, including 0, is rejected.
The method deletes the group and then clears:
Labels and tasks themselves are preserved. Direct label-to-task assignments outside the group are not removed.
Existing task assignments do not prevent deletion; they are cleared as part of the operation.
The method accepts both ACTIVE and REMOVED groups, in either selection mode.
POST /42/label_group_delete HTTP/1.1
Host: api.doboard.com
Content-Type: application/x-www-form-urlencoded
session_id=YOUR_SESSION_ID&group_id=21
Equivalent cURL request:
curl --request POST 'https://api.doboard.com/42/label_group_delete' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'session_id=YOUR_SESSION_ID' \
--data-urlencode 'group_id=21'
All identifiers in examples are illustrative.
{
"data": {
"operation_status": "SUCCESS",
"group_id": 21
}
}
| Field | Description |
|---|---|
data.operation_status |
SUCCESS when deletion completes. |
data.group_id |
Identifier of the deleted group. |
| 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 |
6701 |
group_id required |
Group ID is missing or empty. |
200 |
6702 |
Label group Not Found |
No group matches the supplied ID. |
200 |
0 |
Internal API Error |
The group could not be deleted. |
Example not-found response:
{
"data": {
"operation_status": "FAILED",
"operation_message": "Label group Not Found"
},
"error_message": "Label group Not Found",
"error_no": 6702
}
| Operation | Result |
|---|---|
label_group_update with status=REMOVED |
Retains the group record but clears membership, task assignments and favorites when transitioning to that status. |
label_group_delete |
Permanently deletes the group record and clears its membership, task assignments and favorites. |
A group retained by label_group_update can be returned to ACTIVE, but its cleared associations are not recreated automatically.
A group deleted through label_group_delete cannot be restored through this API.
6702, Label group Not Found.