#NEWLINE# def obj_delete( self , bundle , request = None , **kwargs ) : #NEWLINE# #INDENT# "Delete the object.\n        The DELETE request may include permanent=True/False in its params\n        parameter (ie, along with the user's credentials). Default is False.\n        " #NEWLINE# request = ( request or bundle . request ) #NEWLINE# try : #NEWLINE# #INDENT# permanent = request . REQUEST . get ( 'permanent' , False ) #NEWLINE# obj_id = self . _id_from_uri ( request . path ) #NEWLINE# obj = self . model . objects . get ( id = obj_id ) #NEWLINE# bundle . obj = obj #NEWLINE# self . authorized_delete_detail ( [ obj ] , permanent ) #NEWLINE# obj . delete ( user = request . user , permanent = permanent ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# logger . exception ( 'error deleting %s' , request . path ) #NEWLINE# raise