GRASS logo

NAME

g.remove.path - Remove temporary files or directories

KEYWORDS

general, remove, file, directory, cleanup

SYNOPSIS

g.remove.path
g.remove.path --help
g.remove.path [-fr] path=string [--help] [--verbose] [--quiet] [--ui]

Flags:

-f
Force removal
Force removal of files or directories
-r
Remove directories recursively
Remove directories recursively
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

path=string [required]
Path to the file or directory to remove

Table of contents

DESCRIPTION

g.remove.path is a simple helper module to be used in actinia to clean-up temporary files and directories on a worker node. In line with g.remove no files or directories are removed without the f-flag. For directories also the r-flag is needed. The path option supports the use of wildcards (*), handle with care.

EXAMPLES

temp_file=$(g.tempfile pid=12345)
g.remove.path -f path="$temp_file"

AUTHOR

Stefan Blumentrath

SOURCE CODE

Available at: g.remove.path source code (history)

Accessed: Friday Oct 25 13:33:10 2024


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

© 2003-2024 GRASS Development Team, GRASS GIS 8.4.0 Reference Manual