Bootstrap FreeKB - FTP and Secure FTP (FTPS, SFTP) - Delete a file or directory using the delete command
FTP and Secure FTP (FTPS, SFTP) - Delete a file or directory using the delete command


There are a number of different tools that can be used to connect to an FTP / FTPS / SFTP server.

  • Windows or Linux command line prompt
  • Scripting tool (e.g. Bash, Perl, PowerShell, Python, et cetera)
  • The PSFTP command line tool PSFTP.exe (see Installing PuTTY PSFTP)

Use the pwd (remote present working directory) command to determine your current working directory on the remote FTP system (not on your local PC).

ftp> pwd
Remote directory is /home/john.doe

 

If you need to change the working directory on the remote FTP system, use the cd (change directory) command.

ftp> cd /tmp
Remote directory is now /tmp

 

Use the delete command to delete a file or directory on the remote FTP system.

ftp > delete foo.txt

 

Use the exit command to disconnect.

ftp > exit

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter 419a4c in the box below so that we can be sure you are a human.