GeoEco.DataManagement.Directories.Directory.Delete

classmethod Directory.Delete(directory, removeTree=False)

Deletes a directory.

Parameters:
  • directory (str) – Directory to delete. Minimum length꞉ 1.

  • removeTree (bool, optional) – If True, all files and subdirectories contained in the directory will be deleted. If False, the directory must be empty or deletion will fail.