Reputation: 57
Is there any way to delete all files From FTP. i'm able to delete single files,but not able to delete all the files.I've tried below script but not working for multiple files.
ftp
open <SERVER>
<Usename>
<Pass>
cd </file_location>
delete *.xlsx`
bye
"It's showing Error,No such(*.xls files)". If I use delete File_Name then it's working.I've also tried mdelete and rm. Please help me how can i delete all the files with .xlsx extension.
Upvotes: 2
Views: 8939
Reputation: 14325
mdelete
would have worked if you disabled prompting first.
ftp
open <SERVER>
<Usename>
<Pass>
cd </file_location>
prompt
mdel *.xlsx
bye
Upvotes: 3