Delete Events
Remove Vision Events from a Use Case through the dashboard or the API.
You can delete Vision Events you no longer need. Deleted events no longer appear in query results or the dashboard.
Web App
Open a Use Case and select the event you want to delete.
In the event detail sidebar, select the trash icon next to the event ID.
Confirm the deletion in the dialog. To also remove the event's images and videos from your Asset Library, check "Also delete this event's media". Media that a project, a dataset, or another event still uses is kept.
HTTP API
Delete events from one Use Case by event ID. Your API key needs the vision-events:manage scope, which edge device keys do not have.
Deletes Vision Events from one Use Case by event ID. Deleted events no longer appear in query results or the dashboard. IDs that match no live event in the Use Case are listed in notFound; the rest of the request still succeeds. The workspace comes from the API key. Requires the vision-events:manage scope. Keys with only vision-events:write or device:update, such as edge device keys, cannot delete events.
Roboflow API key or OAuth access token.
ID of the Use Case the events belong to.
IDs of the events to delete. Duplicates count once.
Also permanently delete the images and videos that only these events use. Media that another event, a project, or a dataset still uses is kept. Needs the project:update scope and a key that is not folder-scoped. One request can delete up to 1,000 media files.
falseSuccessful response.
Number of events deleted.
Requested event IDs that matched no live event in the Use Case.
Present when the request used a deprecated field name (solution or solutionId) instead of useCaseId.
useCaseId is missing, eventIds is empty or holds an empty or non-string value, more than 1,000 event IDs were sent, deleteMedia is not a boolean, the events use more than 1,000 media files to delete, or useCaseId and a deprecated alias disagree.
Authentication is missing or invalid.
The API key lacks the vision-events:manage scope or cannot access the workspace. With deleteMedia, the key also lacks the project:update scope or is folder-scoped.
The resource does not exist or is not accessible.
The request rate is too high.
POST /vision-events/delete HTTP/1.1
Host: api.roboflow.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 123
{
"useCaseId": "assembly-line-qa",
"eventIds": [
"a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
]
}{
"deleted": 1,
"notFound": [
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
]
}Last updated
Was this helpful?