I would like to build a function in python that removes all topology layers from a feature dataset.
How can I check if a feature dataset has topology with arcpy, and also how can identify topology layers to delete them.
Have you taken a look here: Common topology tasks—Topologies | ArcGIS Desktop ?
I just hard coded the name of the Topology FC and it works
here is the saple I used to test:
# Import arcpy moduleimport arcpy# Local variables:MyFC_Topology = "...\\FGDB.gdb\\MyFD\\MyFC_Topology"# Process: Deletearcpy.Delete_management(MyFC_Topology, "Topology")
I took the liberty of using the Syntax highlighter to make your code more readable. (here is one of the many posts that describe using it: Posting code with Syntax Highlighting on GeoNet )
It appears you are on you way...
Retrieving data ...