Proper parameter value for Geoprocessing Tool managment.Delete

Discussion created by tomas1 on Oct 4, 2017
Latest reply on Oct 19, 2017 by curtvprice

I am looking for a code example for executing the Geoprocessing tool "management.Delete".  I need to delete esri GRIDs that are created during processing in Pro.  I am not clear as to what parameter to pass.  I have looked the tool help that references input data elements.

I have tried raster datasets, raster layers.  When I pass a raster layer, the tool appears to work in that the GPResults.IsFailed property comes back false.  However, the GRID still resides on disk as a folder name and has its component files still present.

I have run the tool interactively in Pro.  It allows me to browse to the GRID, select it, and then run the command successfully.


I need to know what value to add to the parameters of the MakeValueArray as well as any syntax requirements.

Any assistance would be greatly appreciated.