GeoEco.DataManagement.Files.File.DeleteList

classmethod File.DeleteList(pathList, basePath=None)

Deletes a list of files.

Parameters:
  • pathList (list of str) – List of paths of the files to delete.

  • basePath (str, optional) –

    Base path to prepend to relative paths.

    If any of the input paths (or output paths, if this method has outputs) contained in the lists are relative paths, they will be converted to absolute paths prior to processing, as follows:

    • If a base path is provided, it will be prepended to the relative path.

    • Otherwise, if the ArcGIS geoprocessor has been initialized and the geoprocessing workspace has been set (i.e. arcpy.env.Workspace is not and empty string or None), it will be prepended to the relative path.

    • Otherwise, the current working directory for the executing process will be prepended to the path.

    Minimum length꞉ 1.