Skip to content
Primary navigation

Delete video

videos.delete(video_id) -> VideoDeleteResponse { id, deleted, object }
DELETE/videos/{video_id}

Permanently delete a completed or failed video and its stored assets.

ParametersExpand Collapse
video_id: String
ReturnsExpand Collapse
class VideoDeleteResponse { id, deleted, object }

Confirmation payload returned after deleting a video.

id: String

Identifier of the deleted video.

deleted: bool

Indicates that the video resource was deleted.

object: :"video.deleted"

The object type that signals the deletion response.

Delete video

require "openai"

openai = OpenAI::Client.new

video = openai.videos.delete("video_123")

puts(video)
{
  "id": "id",
  "deleted": true,
  "object": "video.deleted"
}
Returns Examples
{
  "id": "id",
  "deleted": true,
  "object": "video.deleted"
}