HPlogo HP ARPA File Transfer Protocol User's Guide: HP 3000 MPE/iX Computer Systems > Chapter 4 Using FTP

Deleting Remote Files

» 

Technical documentation

» Feedback

 » Table of Contents

 » Glossary

 » Index

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>
Feedback to webmaster