I can't seem to find anything as far as defining a list of layer names and then removing those layers from all mxds within a folder. This is the code I have worked up so far, but I have to cut and paste a new entry for each new layer name. Just getting into programming. I poached a lot of this and made it work for what I needed.
This is my final product following everyone's advice.
#import modules import os, arcpy #provide project folder path folderPath = "C:\Project Folder" #define list of layers to be removed from mxd files as the name appears in table of contents LayersToRemove = ['layer 1','layer 2'] for fileName in [x for x in os.listdir(folderPath) if os.path.splitext(x) == ".mxd"]: fullPath = os.path.join(folderPath, fileName) if os.path.isfile(fullPath): mxd = arcpy.mapping.MapDocument(fullPath) print(fileName) for df in arcpy.mapping.ListDataFrames(mxd): for lyr in arcpy.mapping.ListLayers(mxd, "", df): if lyr.name in LayersToRemove: arcpy.mapping.RemoveLayer(df, lyr) print(" " + df.name + ": removed: " + lyr.name) #saves a copy of the map mxd.saveACopy("copy_" + fileName) del mxd