AnsweredAssumed Answered

Delete Feature Class from Geodatabase using arcpy not working

Question asked by pmor1503 on Sep 2, 2020
Latest reply on Sep 3, 2020 by pmor1503

I have looked at other the scripts to delete feature classes in Geodatabases but all I can do is remove the feature classes from the Contents window but they are still in the Geodatabase in Catalog. I'm not sure that I am using the correct function Delete_management

 

import arcpy

arcpy.env.workspace = r"C:\Data\Temp.gdb"

fc_Delete = ["fcOut1a","fc_Out2a","fc_Out3a"]

for fc in fc_Delete:
if arcpy.Exists(fc):
arcpy.Delete_management(fc,"")

Outcomes