Remove annotations
remove_annotationsDelete specific image annotations by their IDs while keeping all other annotations intact and returning the number removed and updated total.
Instructions
Remove specific annotations from an image by their ids, keeping all the others.
Use it to delete a few annotations; to change many at once (rename labels, fix shapes) use replace_annotations instead. Get the ids from get_image (each annotation's id field). Ids that are not on the image are ignored, and the rest are removed in one save. Returns the number removed and the new annotation count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_id | Yes | Id of an image in Image Label: the imageId (a UUID string) returned by list_images or an upload. | |
| annotation_ids | Yes | Ids of the annotations to delete (the id field of each annotation from get_image); ids not on the image are ignored. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||