#NEWLINE# def delete( self , * args , **kwargs ) : #NEWLINE# #INDENT# 'Delete this element, or raise ProtectedError if its in use.' #NEWLINE# if ( not kwargs . deletable ) : #NEWLINE# #INDENT# raise models . ProtectedError ( "Element '{0}' is in use and cannot be deleted." . format ( self . name ) , list ( self . environments . all ( ) ) ) #NEWLINE# #UNINDENT# return super ( Element , self ) . delete ( * args , ** kwargs )