How To Delete Directory In Ubuntu?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To delete a directory in Ubuntu, you can use the ‘rm’ command.
The basic syntax for this command is as follows:
rm -r directoryname
The “-r” flag is used to recursively delete a directory and all its contents.
Be sure to double-check that you are deleting the correct directory before running the command, as this action cannot be undone.