#NEWLINE# def delete_track( self , video_id , track , client_id , developer_key , auth_token = None , **kwargs ) : #NEWLINE# #INDENT# 'Deletes a track.' #NEWLINE# if isinstance ( track , gdata . youtube . data . TrackEntry ) : #NEWLINE# #INDENT# track_id_text_node = track . get_id ( ) . split ( ':' ) #NEWLINE# track_id = track_id_text_node [ 3 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# track_id = track #NEWLINE# #UNINDENT# uri = ( YOUTUBE_CAPTION_URI % ( video_id , track_id ) ) #NEWLINE# http_request = atom . http_core . HttpRequest ( uri = uri , method = 'DELETE' ) #NEWLINE# dev_key = ( 'key=' + developer_key ) #NEWLINE# authsub = ( ( 'AuthSub token="' + str ( auth_token ) ) + '"' ) #NEWLINE# http_request . headers = { #NEWLINE# #INDENT# 'Authorization' : authsub , #NEWLINE# 'GData-Version' : self . api_version , #NEWLINE# 'X-GData-Client' : client_id , #NEWLINE# 'X-GData-Key' : dev_key , #NEWLINE# #UNINDENT# } #NEWLINE# return self . request ( http_request = http_request , ** kwargs )