I'm trying to delete a map that I used as a mask before, but I cannot delete it using g.remove. It displays this:

g.remove rast=raster_Mnorzagaray@PERMANENT
[raster_Mnorzagaray@PERMANENT@PERMANENT] is a base map. Remove reclassed map first: MASK@PERMANENT

  • What's happening if you only write g.remove rast=raster_Mnorzagaray ?
    – simo
    Mar 8, 2011 at 16:50
  • when i write that, g.remove rast=raster_Mnorzagaray [raster_Mnorzagaray@PERMANENT] is a base map. Remove reclassed map first: MASK@PERMANENT is displayed. I used raster_Mnorzagaray previously as a mask and Im trying to remove it because i will use the same name for another map
    – teamAngat
    Mar 8, 2011 at 17:13
  • you should probably remove the mask before, with the command r.mask -r then g.remove rast=raster_Mnorzagaray
    – simo
    Mar 8, 2011 at 17:17
  • 1
    I did that but it still produced the same error. raster_Mnorzagaray is not anymore in the list of raster maps but I cannot use the same name to create another map with the same name.
    – teamAngat
    Mar 8, 2011 at 17:27
  • Same here. Maybe we need to extend/alter the WARNING message. Mar 1, 2013 at 12:42

2 Answers 2


there is another map that uses that one as base map, it maybe a RGB composition or something like it. If you don't find what it is, just delete the map from the grassdata directory, you will find it in cell, cell_misc and cellhd folders in grassdata\location\mapset\.

  • How safe is that though? Mar 1, 2013 at 12:43
  • 1
    It won't crash the program, but certainly the composition will not work anymore.
    – Pablo
    Mar 1, 2013 at 19:37
  • Yes, sort of the latter I was referring to. Mar 2, 2013 at 15:58

The command [g.remove][1] with flag -b can be used to remove base maps.

  • 1
    Using native grass modules is safer, in any case. Also, one can force the removal of any map by issuing the force flag, i.e.: g.remove rast=raster_Mnorzagaray -f. Dec 4, 2013 at 23:21
  • I agree with @Nikos, the right way is to use the force flag Aug 21, 2014 at 13:15
  • Just a note, g.mremove ceased existing in GRASS ver. 7.x. It's capacilities are all present in g.remove. Nov 7, 2014 at 21:51
  • Can someone please edit [g.remove][1] to [g.remove][1] so the link "[1]: grass.osgeo.org/grass74/manuals/g.remove.html" works? Aug 29, 2018 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.