For the complete documentation index, see llms.txt. This page is also available as Markdown.

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

  1. Open a Use Case and select the event you want to delete.

  2. In the event detail sidebar, select the trash icon next to the event ID.

  3. 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.

Delete Vision Events

post

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.

Authorizations
AuthorizationstringRequired

Roboflow API key or OAuth access token.

Body
useCaseIdstringRequired

ID of the Use Case the events belong to.

eventIdsstring[] · min: 1 · max: 1000Required

IDs of the events to delete. Duplicates count once.

deleteMediabooleanOptional

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.

Default: false
Responses
200

Successful response.

application/json
deletedintegerRequired

Number of events deleted.

notFoundstring[]Required

Requested event IDs that matched no live event in the Use Case.

deprecationsstring[]Optional

Present when the request used a deprecated field name (solution or solutionId) instead of useCaseId.

post/vision-events/delete
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?