resources/videos/methods/delete/index.md +0 −45 deleted
File Deleted View Diff
1> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.
2
3## Delete a video
4
5**delete** `/videos/{video_id}`
6
7Permanently delete a completed or failed video and its stored assets.
8
9### Path Parameters
10
11- `video_id: string`
12
13### Returns
14
15- `id: string`
16
17 Identifier of the deleted video.
18
19- `deleted: boolean`
20
21 Indicates that the video resource was deleted.
22
23- `object: "video.deleted"`
24
25 The object type that signals the deletion response.
26
27 - `"video.deleted"`
28
29### Example
30
31```http
32curl https://api.openai.com/v1/videos/$VIDEO_ID \
33 -X DELETE \
34 -H "Authorization: Bearer $OPENAI_API_KEY"
35```
36
37#### Response
38
39```json
40{
41 "id": "id",
42 "deleted": true,
43 "object": "video.deleted"
44}
45```