#NEWLINE# def delete( self , bucket , object_name ) : #NEWLINE# #INDENT# object_name = urllib . unquote ( object_name ) #NEWLINE# path = self . _object_path ( bucket , object_name ) #NEWLINE# if ( ( not path . startswith ( self . application . directory ) ) or ( not os . path . isfile ( path ) ) ) : #NEWLINE# #INDENT# self . set_status ( 404 ) #NEWLINE# return #NEWLINE# #UNINDENT# os . unlink ( path ) #NEWLINE# self . set_status ( 204 ) #NEWLINE# self . finish ( )