remove_layer_from_map
Remove a named layer from a map in an ArcGIS Pro project. Use for targeted map cleanup before export; underlying dataset is not deleted.
Instructions
Remove a named layer from a map inside a saved ArcGIS Pro .aprx project using map.removeLayer. Use this for controlled map cleanup before export, packaging, or automated project updates. This changes the map contents but does not delete the underlying dataset; confirm=true is required because the project structure is mutated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||