Delete Label
DELETEhttps://api.confident-ai.com/v2/classifiers/{classifierId}/labels/{labelId}
Permanently deletes a label from a classifier and returns its id. Classifications already applied with it are not removed. This action cannot be undone. Requires the Starter plan or above.
curl -X DELETE "https://api.confident-ai.com/v2/classifiers/{classifierId}/labels/{labelId}" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>"{
"success": true,
"data": {
"id": "<CLASSIFIER-LABEL-ID>"
},
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
classifierIdstringRequiredThe id of the classifier the label belongs to.
labelIdstringRequiredThe id of the label.
Response
Delete Label succeeded.
successbooleanIndicates if the request was successful.
dataobjectA reference to a classifier label by its id.
Show 1 propertyHide 1 property
idstringThe id of the label, generated by Confident AI.
deprecatedbooleanIndicates if this endpoint is deprecated.