7.2.11 rm
Remove files.
Syntax
rm [ -f ] [ -i ] [ -v ] [{ -w | --wallet } wallet-location ]
[{ -T | --trace } trace-level ] filename
Command Options
The options for the rm
command are:
-
filename: Specifies the files being removed.
You can use a wildcard (
%
) in the filename to specify multiple files. -
-f
: Forces removal of open files. -
-i
: Interactively prompt for confirmation before deleting a file. -
-v
: Print the names of the files being deleted. -
-w
,--wallet
: Optionally specifies the path to the Exascale wallet directory. -
-T
,--trace
: Optionally enables tracing and sets the trace level to1
(minimum tracing),2
(medium tracing), or3
(maximum tracing).If the
$ADR_BASE
environment variable is set, the trace file is written to:$ADR_BASE/diag/EXC/xsh_<username>/<hostname>/trace/xsh_<date>.trc
Otherwise, the trace file is written to:
/tmp/diag/EXC/xsh_<username>/<hostname>/trace/xsh_<date>.trc
Examples
Example 7-16 Delete an Exascale file
The following example deletes
@MYDATA/myfile
.
$ xsh rm @MYDATA/myfile
Parent topic: XSH Command Reference