I want to delete all empty shapefiles in a folder. The following is not working:
#Find empty shapefiles and delete them
arcpy.env.workspace = r"S:\SupportServices\LGAShapefiles"
shapefiles = arcpy.ListFeatureClasses()
for shapefile in shapefiles:
if arcpy.management.GetCount(shapefile)[0]=="0":
arcpy.Delete_management(shapefile)
print shapefile + "Deleted"