GeoEco.DataManagement.ArcGISRasters.ArcGISRaster.FindAndDelete

classmethod ArcGISRaster.FindAndDelete(inputWorkspace, wildcard='*', searchTree=False, rasterType=None)

Finds and deletes rasters in an ArcGIS workspace.

Parameters:
  • inputWorkspace (str) – Workspace to search. Minimum length꞉ 1. Must exist.

  • wildcard (str, optional) – Wildcard expression specifying the rasters to find. Please see the documentation for the ArcGIS ListRasters() function for more information about the syntax. At the time of this writing, only the * wildcard character was supported, which would match zero or more of any character. Minimum length꞉ 1.

  • searchTree (bool, optional) – If True, child workspaces will be searched.

  • rasterType (str, optional) – Type of rasters to find. If provided, only rasters of this type will be found. At the time of this writing, the ArcGIS Pro 3.2 documentation specified that any of the following strings would be accepted: All (the default), BMP, GIF, GRID, IMG, JP2, JPG, PNG, TIFF. Minimum length꞉ 1.

Returns:

Workspace to search. Minimum length꞉ 1. Must exist.

Return type:

str