Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to recursively delete a folder and his subfolders. I use ncftp. This application provides rm and rmdir.

I already looked up the manpage, but it doesn't help.

share|improve this question
up vote 1 down vote accepted

This is how it works:

rm -rf directory
share|improve this answer
    
Tried that already... > rm -rf html delete html: remote rmdir failed. ncftp ... > – Martin Cleaver Dec 12 '14 at 15:33

You need to use *, as in rm -rf directory/*

share|improve this answer
1  
no, the other answer works just fine even without the star. – Jakuje Jan 22 at 20:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.