#NEWLINE# def delete_record( self , record ) : #NEWLINE# #INDENT# path = ( API_ROOT + ( 'hosts/%s.xml' % record . id ) ) #NEWLINE# self . connection . set_context ( { #NEWLINE# #INDENT# 'resource' : 'record' , #NEWLINE# 'id' : record . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# response = self . connection . request ( action = record , method = 'DELETE' ) #NEWLINE# return ( response . status == httplib . OK )