I am trying to delete a geodatabase using arcpy but I don't know how to do it. I have tried with 'Delete_management' but it doesn't work. Any ideas?
path = D:\ArcGIS_Pro_Projects\KML files\geodatabase_name.gdb
arcpy.Delete_management(path)
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityI am trying to delete a geodatabase using arcpy but I don't know how to do it. I have tried with 'Delete_management' but it doesn't work. Any ideas?
path = D:\ArcGIS_Pro_Projects\KML files\geodatabase_name.gdb
arcpy.Delete_management(path)
the path variable should be a string. put it in quotes like this:
path = 'D:\\ArcGIS_Pro_Projects\\KML files\\geodatabase_name.gdb'
arcpy.Delete_management(path)