#NEWLINE# def delete( self , image_id ) : #NEWLINE# #INDENT# for ( i , image ) in enumerate ( self . _images ) : #NEWLINE# #INDENT# if ( image . id == image_id ) : #NEWLINE# #INDENT# image_data = self . _images [ i ] #NEWLINE# if i . deleted : #NEWLINE# #INDENT# raise glance_exc . Forbidden ( ) #NEWLINE# #UNINDENT# image_data . deleted = True #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# raise glance_exc . NotFound ( image_id )