Forrest logo
tool overview
On this page you find all important commands for the CLI tool rm. If the command you are looking for is missing please ask our AI.

rm

rm removes each specified file. By default, it does not remove directories.

List of commands for rm:

  • files:directory:delete Delete a given directory with all child directories.
    $ rm -rf ${directory}
    try on your machine
    explain this command
  • files:file:delete Delete a given file.
    $ rm ${filename}
    try on your machine
    explain this command
  • ios:warp:0cf15 Clear Xcode Derived Data
    $ rm -rf ~/Library/Developer/Xcode/DerivedData
    try on your machine
    explain this command
  • npm:module:reinstall-all Reinstall all NPM dependencies
    $ rm -rf node_modules && npm install
    try on your machine
  • rm:tldr:069cc rm: Remove specific files and directories recursively.
    $ rm --recursive ${filename_or_directory1 filename_or_directory2 ---}
    try on your machine
    explain this command
  • rm:tldr:2adc2 rm: Remove specific files ignoring nonexistent ones.
    $ rm -f ${filename1 filename2 ---}
    try on your machine
    explain this command
  • rm:tldr:3c6e4 rm: Remove specific files ignoring nonexistent ones.
    $ rm --force ${filename1 filename2 ---}
    try on your machine
    explain this command
  • rm:tldr:807b7 rm: Remove specific files printing info about each removal.
    $ rm --verbose ${filename1 filename2 ---}
    try on your machine
    explain this command
  • rm:tldr:8572a rm: Remove specific files [i]nteractively prompting before each removal.
    $ rm -i ${filename1 filename2 ---}
    try on your machine
    explain this command
  • rm:tldr:99f0f rm: Remove specific files interactively prompting before each removal.
    $ rm --interactive ${filename1 filename2 ---}
    try on your machine
    explain this command
  • rm:tldr:9f11c rm: Remove specific files and directories [r]ecursively.
    $ rm -r ${filename_or_directory1 filename_or_directory2 ---}
    try on your machine
    explain this command
  • rm:tldr:c80b2 rm: Remove specific files printing info about each removal.
    $ rm -v ${filename1 filename2 ---}
    try on your machine
    explain this command
tool overview