Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

With ncftpput.exe how do I delete a remote file once logged in?

I have tried using the -W option to send a Raw FTP command but cannot get it to work.

Has anyone got a working example?

Have tried this command line & several variations of:-

ncftpput.exe -f FTP_account.ftp -W DELE TEST.TXT
share|improve this question
Have you been able to delete a file using ncftp? I am searching for a Windows script that used ncftp to upload and download remote files and afterwards delete them from the remote location. Thanks in advance. –  user155655 Jan 23 '13 at 8:11
This is a bit late... but I'm not using ncftpput anymore, I solved all my issues by using WinSCP portable, which has comprehensive command line options. –  user154550 Nov 25 '14 at 10:46

1 Answer 1

From the man rm If you need to delete a remote file you can try the rm command. Much of the time this won't work because you won't have the proper access permissions. This command doesn't accept any flags, so you can't nuke a whole tree by using ``-rf'' flags like you can on UNIX.

share|improve this answer

Your Answer


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.