g.remove(1grass)

g.remove1grass

Removes data base element files from the user’s current mapset using the search pattern.

Usage

g.remove

g.remove --help

g.remove [-irefb] type=datatype [,datatype, ...] [name=string [,string, ...]] [ignore=string [,string, ...]] [pattern=string] [exclude=string] [--help] [--verbose] [--quiet] [--ui]

Keywords

general, map management, remove

Overview

g.remove removes data files matching a pattern given by wildcards or POSIX Extended Regular Expressions. If the -f force flag is not given then nothing is removed, instead the list of selected file names is printed to stdout as a preview of the files to be deleted.

Examples

Delete map1 and map2 raster maps in the current mapset:

g.remove -f type=raster name=tmp1,tmp2

Delete all raster and vector maps starting with "tmp_" in the current mapset:

# show matching raster and vector maps but do not delete yet (as verification)
g.remove type=raster,vector pattern="tmp_*"
# actually delete the matching raster and vector maps
g.remove -f type=raster,vector pattern="tmp_*"

Delete all vector maps starting with "stream_" in the current mapset, but exclude those ending with "_final":

g.remove -f type=vector pattern="stream_*" exclude="*_final"

Source code

Available at: g.remove source code (history)

Accessed: Monday Feb 24 17:50:30 2025

Main index | General index | Topics index | Keywords index | Graphical index | Full index

© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

Releases

10 releases since Debian 4.0 (Etch); the text changed 9 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13

Author

Huidae Cho
[email protected]

From grass-doc 8.4.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.