Method: Zype::Subtitles#delete

Defined in:
lib/zype/models/subtitles.rb

#delete(id:, video_id:) ⇒ Hash

Deletes an existing subtitle via the API

Parameters:

  • id (String)

    the ID of the object

  • video_id (String)

    ID of the video the subtitle belongs to

Returns:

  • (Hash)

    the deleted subtitle

Since:

  • 0.7.0



53
54
55
# File 'lib/zype/models/subtitles.rb', line 53

def delete(id:, video_id:)
  client.execute(method: :delete, path: "/videos/#{video_id}/subtitles/#{id}")
end