How to remove a file

rm

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

Updated
Viewed
31399 times

Need help? We're always here for you.

notmyip