Bug
| Bug ID Number | BUG-000121616 |
|---|---|
| Submitted | April 10, 2019 |
| Last Modified | June 5, 2024 |
| Applies to | ArcGIS Pro |
| Version found | 2.3 |
| Operating System | N/A |
| Operating System Version | N/A |
| Version Fixed | 2.6 |
| Status | Fixed |
The Delete tool fails with ["a", "b", "c"] but succeeds with ["a;b;c"]. As a workaround follow the steps below:
## Use ListFeatureClasses with wildcard to obtain a list of feature classes to be deleted
fclist = arcpy.ListFeatureClasses(...)
arcpy.management.Delete(";".join(fclist))
This works in Python IDLE and standalone script, but does not work in the Python window of ArcGIS Pro.
Bug ID: BUG-000121616
Software:
Get help from ArcGIS experts
Download the Esri Support App