I have a question about deleting a folder on Ubuntu 18.04 TLS.

Why can't I delete this folder? I have tried to delete with command rm -fr but it didn't work.

Here is the error

  • It says permission denied. Try with root user. – PRY Jan 18 at 13:24
  • Thank you very much @P_Yadav . First I gain root permission then I used command rm -R – Candan Jan 18 at 13:35
  • but always be careful while using rm -rf with root user, because there will be no backup if you deleted wrong files. – PRY Jan 18 at 13:36
  • WARNING: A typo when using rm -rf can destroy your system. Might there be other, safer ways for you to delete files in /home? (Hint: Yes there are!) – user535733 Jan 18 at 15:26

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.