Delete examples
Delete examples from a model and remove their annotations and decision history from model views. Requires writer access. The response counts only examples that were present and not already deleted.
/v1/models/{workspace}/{model}/examplesAuthorization
Send a Modaic bearer token in the Authorization header.
Path Parameters
Send exactly one of the following JSON bodies:
{"exampleIds": ["31fcc86c-7f49-4daa-a8b1-577db0c8fe76"]}
{"all": true, "filters": {"maxConfidence": 0.5, "hideGraded": true}}
Body
Between 1 and 1,000 example IDs. Only examples in this model are deleted.
Set to true to delete every matching example, across all pages. When
filters is absent, all examples in the model are selected.
Optional with all: true. Supports search (case-insensitive substring),
maxConfidence (0–1, including examples with unknown confidence),
hideGraded, commitShas (string array), and versions (non-negative
integer array). These have the same meaning as the list filters.
Response
Number of examples removed. Repeating a deletion returns zero for examples already removed.