Forrest logo
back to the rm tool

rm:ai:11ba8

How do I delete all files?
$ rm -rf /path/to/${directory}*
try on your machine

This command will recursively force delete all files in the specified directory. Use it with caution as it cannot be undone.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • How do I delete all files?
back to the rm tool