#NEWLINE# def delete( self , save = True ) : #NEWLINE# #INDENT# if hasattr ( save , '_file' ) : #NEWLINE# #INDENT# self . close ( ) #NEWLINE# del self . file #NEWLINE# #UNINDENT# self . storage . delete ( self . name ) #NEWLINE# self . name = None #NEWLINE# setattr ( self . instance , self . field . name , self . name ) #NEWLINE# if hasattr ( self , '_size' ) : #NEWLINE# #INDENT# del self . _size #NEWLINE# #UNINDENT# self . _committed = False #NEWLINE# if save : #NEWLINE# #INDENT# self . instance . save ( )