# Delete Events

You can delete Vision Events that are no longer needed. Deleted events are permanently removed from query results and the dashboard.

## Delete from the Dashboard

1. Open a Use Case and click on the event you want to delete
2. In the event detail sidebar, click the trash icon next to the event ID
3. Confirm the deletion in the dialog

## Delete via the API

Send a `POST` request to `/vision-events/delete` with the Use Case ID and an array of event IDs to delete.

```bash
curl -X POST "https://api.roboflow.com/vision-events/delete" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "useCaseId": "assembly-line-qa",
    "eventIds": ["evt-789ghi", "evt-456def"]
  }'
```

**Response:**

```json
{
  "deleted": 2,
  "notFound": []
}
```

`deleted` is the number of events that were removed. Any event IDs that didn't match a live event are returned in the `notFound` array.

You can delete up to 1,000 events per request.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/deploy/vision-events/delete-events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
