I need to scroll through an mxd and remove any layers that have broken data sources.
I have found
brknList = arcpy.mapping.ListBrokenDataSources(inMXD)
and
for lyr in arcpy.mapping.ListLayers(mxd, "*",df):
arcpy.mapping.RemoveLayer(df, lyr)
both work well, but not together.
Any suggestions?