3

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.

djsmiley2kStaysInside
  • 6,643
  • 2
  • 31
  • 43
Peter
  • 1,015
  • 2
  • 16
  • 33

2 Answers2

4

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

Burgi
  • 6,493
  • 14
  • 39
  • 52
user548769
  • 41
  • 1
2

This is how it works:

rm -rf directory

As someone pointed out, depending on the ncftp version it won't work. Try this syntax then:

rm -rf directory/*
Peter
  • 1,015
  • 2
  • 16
  • 33