# Events を削除

不要になった Vision Events を削除できます。削除されたイベントは、クエリ結果とダッシュボードから完全に削除されます。

## Dashboard から削除

1. Use Case を開き、削除したいイベントをクリックします
2. イベント詳細のサイドバーで、イベント ID の横にあるゴミ箱アイコンをクリックします
3. ダイアログで削除を確認します

## API 経由で削除

以下を送信します `POST` リクエストを `/vision-events/delete` Use Case ID と、削除するイベント ID の配列を指定して

```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"]
  }'
```

**レスポンス:**

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

`deleted` は削除されたイベントの数です。存在するイベントと一致しなかった event ID は、 `notFound` 配列で返されます。

1 回のリクエストで最大 1,000 件のイベントを削除できます。


---

# 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/roboflow/roboflow-jp/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.
