PDA

View Full Version : [SOLVED] Command to Delete all Files in an FTP directory



CrusaderAD
February 7th, 2012, 06:57 PM
Is there an FTP command from the terminal line that can delete all files in a certain directory? I'm trying to purge a directory using a shell script.

Lars Noodén
February 7th, 2012, 07:07 PM
I don't know about FTP, but in SFTP there is 'rm' and it works more or less like regular 'rm'

Rafterman414
February 7th, 2012, 07:13 PM
For removing FTP directories try rmdir

CrusaderAD
July 19th, 2012, 03:03 PM
mdelete *

Will delete everything in the working directory.