From here....
Map—ArcPy | Documentation
removeLayer (remove_layer) | Provides the ability to remove a layer from a map in a project. |
Now from the code section in that topic,
- substitute your project name,
- same for the listMaps option
- ditto for listLayers and finally
- replace insertLayer with removeLayer
- then save the project
... sort of retired...