Remove files or directories.
Synopsis
rm [OPTION]... FILE...
Description
Remove files or directories from the filesystem. By default, does not remove directories. Runs in the just-bash WASM shell inside SLICC.
Options
-r, -R, --recursive Remove directories and their contents recursively.
-f, --force Ignore nonexistent files, never prompt.
-v, --verbose Explain what is being done.
Examples
$ rm file.txt
Remove a file.
$ rm -rf temp/
Recursively remove a directory.
Notes
Operates on the SLICC virtual filesystem (LightningFS/IndexedDB). Deletions are permanent (no trash/undo).
See Also
rmdir, mv, cp, mkdir