How to remove a file


This command removes a file or all files in a directory. Recovering files that rm has removed is extremely difficult and problematic. Ensure you have good backups before using this command!

$ rm index.html                - removes the index.html file from the current directory
$ rm -r wp-content/         - removes the wp-content/ directory even if the directory is not empty


We welcome your comments, questions, corrections and additional information relating to this article. Your comments may take some time to appear. Please be aware that off-topic comments will be deleted.

If you need specific help with your account, feel free to contact our Support Team. Thank you.

Need help? We're always here for you.

× Close