This API is used to delete a label and the files that only contain this label.
You can debug this API through automatic authentication in or use the SDK sample code generated by API Explorer.
DELETE /v2/{project_id}/datasets/{dataset_id}/data-annotations/labels/{label_name}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
dataset_id |
Yes |
String |
Dataset ID. |
label_name |
Yes |
String |
Label name. |
project_id |
Yes |
String |
Project ID. For details about how to obtain a project ID, see Obtaining a Project ID and Name. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
delete_source |
No |
Boolean |
Whether to delete the sample source files. Options:
|
label_type |
No |
Integer |
Label type. Options:
|
None
Status code: 204
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
success |
Boolean |
Check whether the operation is successful. Options:
|
Deleting a Label and the Files that Only Contain the Label
DELETE https://{endpoint}/v2/{project_id}/datasets/WxCREuCkBSAlQr9xrde/data-annotations/labels/%E8%8D%89%E8%8E%93
Status code: 204
No Content
{ "success" : true }
Status Code |
Description |
---|---|
204 |
No Content |
401 |
Unauthorized |
403 |
Forbidden |
See Error Codes.