[GRASS-dev] [GRASS GIS] #3582: Removing a Mapset from inside a GRASS GIS session

GRASS GIS trac at osgeo.org
Thu Jun 7 02:24:01 PDT 2018

#3582: Removing a Mapset from inside a GRASS GIS session
 Reporter:  Nikos Alexandris               |      Owner:  grass-dev@…
     Type:  enhancement                    |     Status:  new
 Priority:  normal                         |  Milestone:
Component:  Default                        |    Version:  unspecified
 Keywords:  mapset, remove, delete, erase  |        CPU:  Unspecified
 Platform:  Unspecified                    |
 Would it possible to add a way to remove a Mapset, or multiple Mapsets,
 from the command line? For example, add a "remove" or "delete" or "erase"
 function to the existing `g.mapset` module.

 Points to consider:

 * This functionality should not be allowed, of course!, to request for a
 removal of the current Mapset. It should only allow for removal of
 other(s) than the current Mapset.

 * Only the owner of another, than the current, Mapset, or the "admin"
 (creator of PERMANENT?), will be able to remove it.

 * Following the existing way of removing "elements" of a Mapset, a force
 flag `-f` could be required, in order to actually remove such a directory,
 and all of its contents.

 * Such an option would, maybe, make for a safer practice, if implemented
 correctly, rather than leaving as the only option to remove a Mapset
 directory, directly via the host OS' deletion functions.

 * safe `rm` parctices https://serverfault.com/a/337098/181744

 See also https://trac.osgeo.org/grass/ticket/3577

Ticket URL: <https://trac.osgeo.org/grass/ticket/3582>
GRASS GIS <https://grass.osgeo.org>

More information about the grass-dev mailing list