parameters: (self)
docstring: Delete the file/folders, and remove this node from the tree. It becomes invalid after that
docstring_summary: Delete the file/folders, and remove this node from the tree. It becomes invalid after that
docstring_tokens: Delete the file / folders and remove this node from the tree . It becomes invalid after that
function: def delete(self):
  		"""Delete the file/folders, and remove this node from the tree. It becomes invalid after that"""
  		try:
  			if hasattr(self, 'children'):
  				shutil.rmtree(self.abspath())
  			else:
  				os.remove(self.abspath())
  		except OSError:
  			pass
  		self.evict()
function_tokens: def delete ( self ) : try : if hasattr ( self , 'children' ) : shutil . rmtree ( self . abspath ( ) ) else : os . remove ( self . abspath ( ) ) except OSError : pass self . evict ( )