del - Delete files on the remote server in SFTP

To delete a file on the server, type "del" and then the filename.

Syntax:
psftp> del filename


Note:
The "rm" command works exactly the same way as "del".
The file name must exist in the path.
Other wise PSFTP will throw "File not found" error.

Example:
    psftp> pwd
    current remote working directory is /home/user1
    psftp> del file1.sh
    psftp>


file1.sh will be deleted in /home/user1.

You can delete multiple files also using del.

    psftp> pwd
    current remote working directory is /home/user1
    psftp> del file1.sh file2.sh file3.sh file4.sh file5.sh
    psftp>


file1.sh, file2.sh, file3.sh, file4.sh, file5.sh will be deleted in /home/user1.