FTPDELETE Delete a file on an FTP site |
Top Previous Next |
This script command deletes the specified file or files on the FTP site. This is an example of the FTPDELETE command:
FTPDELETE "file name"
Wildcard file names are permitted with the FTPDELETE command except when connected to a HTTP/HTTPS site. For example, the following command deletes all files with an extension of .html from an FTP site directory named mysite.
FTPDELETE "mysite/*.html"
To delete a local file, use the DELETE script command.
Important In SSH mode, FTPDELETE returns a success status if the file does not exist on the server. In other modes, FTPDELETE returns an error indicating that the file cannot be deleted.
Related Command(s): FTPCMD, FTPRENAME
|