Monday, April 29, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 16270  / 2 Years ago, fri, september 9, 2022, 8:33:09

I'm using Ubuntu 12.10



I have a folder inside /var/www/wordpress/wp-content/themes/myFolder called myFolder. Inside myFolder there are subfolders. Now I cannot remove it via the GUI, and when using terminal it also does not work, perhaps because I'm doing it wrong. I said:



sudo rmdir /var/www/wordpress/wp-content/themes/myFolder/* 


and I also tried just rm, but it keeps telling me "directory not empty" and some other errors as well. How do I delete it then that folder with all its contents?



Thank you


More From » command-line

 Answers
5

sudo rm -R /var/www/wordpress/wp-content/themes/myFolder/*



-R to recursively remove anything inside it (and deeper).



This also removes files (not just directories).


[#33987] Friday, September 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tubequ

Total Points: 11
Total Questions: 113
Total Answers: 115

Location: Equatorial Guinea
Member since Thu, Oct 7, 2021
3 Years ago
;