I have about 100 figures that have been updated countless times and a lot of the old data was left in each .mxd but was only turned off (unchecked) and not removed. I would like to remove these layers from each .mxd but keep the actual shapefile/features in an achieve folder.
I have found a similar script that removes layers by layer name here: Delete layer from ArcMap using Python
but it does not do exactly what I want it to do.
Does anyone have a script already written that does what I am trying to do?