To remove a layer from a map in QGIS, simply right-click on the layer in the Layers panel and select "Remove Layer."
Here's a breakdown:
- Locate the Layers Panel: The Layers panel is usually on the left side of the QGIS window. It lists all the layers currently added to your map project. If you don't see it, go to
View > Panels > Layers
. - Identify the Layer: Find the layer you want to remove in the Layers panel.
- Right-Click: Right-click on the name of the layer.
- Select "Remove Layer": A context menu will appear. Choose the option that says "Remove Layer."
- Confirmation: QGIS might prompt you for confirmation to prevent accidental removal, especially if you have this setting enabled. You can disable this prompt by going to
Settings > Options > General
and unchecking "Prompt for confirmation when a layer is to be removed".
Important Note: Removing a layer from the map canvas in QGIS does not delete the underlying data file. It only removes the layer's representation from your current project. The original shapefile, GeoTIFF, or other data source remains untouched on your computer.