이벤트 삭제
대시보드 또는 API를 통해 사용 사례에서 Vision Event를 제거합니다.
더 이상 필요하지 않은 Vision Events를 삭제할 수 있습니다. 삭제된 이벤트는 쿼리 결과나 대시보드에 더 이상 표시되지 않습니다.
웹 앱
Use Case를 열고 삭제할 이벤트를 선택합니다.
이벤트 세부정보 사이드바에서 이벤트 ID 옆의 휴지통 아이콘을 선택합니다.
대화상자에서 삭제를 확인합니다. 이벤트의 이미지와 동영상도 Asset Library에서 삭제하려면 "이 이벤트의 미디어도 삭제"를 선택합니다. 프로젝트, 데이터셋 또는 다른 이벤트에서 계속 사용하는 미디어는 유지됩니다.
HTTP API
이벤트 ID를 지정해 하나의 Use Case에서 이벤트를 삭제합니다. API 키에 다음 vision-events:manage 범위가 필요합니다. 엣지 디바이스 키에는 이 범위가 없습니다.
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"
]
}마지막 업데이트
도움이 되었나요?