HP ARPA File Transfer Protocol User's Guide (36957-90159)

Chapter 4 39
Using FTP
Deleting Remote Files
as follows:
ftp> RENAME
remotefile directoryname/newfile
CAUTION
If the new file name you specify already exists on the remote system, the
remote system may overwrite the existing file without warning.
Deleting Remote Files
You can delete files on the remote host from FTP as follows:
ftp> DELETE
remotefile
To delete a file in a different directory on a UNIX-type system, include the directory name
with the
remotefile
specified as you normally would on the remote UNIX system as
follows:
ftp> DELETE
directoryname/remotefile
Delete Multiple Files
You can delete multiple files on the remote host using the MDELETE command.
With interactive prompting enabled, you are prompted whether or not to delete each file in
the fileset you have specified. For example:
ftp> MDELETE c*
mdelete cat1? y
200 DELE command okay.
mdelete cat2? y
200 DELE command okay.
mdelete cat3?
200 DELE command okay.
mdelete cata4? n
ftp>
Viewing Local Settings
FTP provides commands that determine how files are transferred. For FTP, each of these
commands have only one supported option as shown here.
Command Option
FORM NONPRINT
MODE STREAM