TCPIP$FTP_HELP.HLB  —  DELETE
    Deletes either UNIX or OpenVMS remote files. To use this command,
    you must have an FTP session with a remote host.

                                   NOTE

       Use caution with the mdelete command. The FTP command
       DIRECTORY does not list hidden files (files that start
       with a period). Using the mdelete command with any wildcard
       deletes hidden files, which you might need.

    DCL Format

      DELETE  remote_files

      DELETE/DIRECTORY  remote_directory

    UNIX Format

      delete  remote_file

      mdelete  remote_files

      rmdir  remote_directory

1  –  Parameters

 remote_file

    Required.

    File, files, or directory to delete.

2  –  Qualifiers

2.1    /DIRECTORY

    Optional. The /DIRECTORY qualifier must follow immediately after
    the DELETE command without a preceding space.

    Deletes an empty directory. To delete a directory that is not
    empty, you must first delete the contents of the directory.

3  –  Examples

    1.FTP> DELETE [MAIN.BRANCH]*.*;*
      250 DELE of [MAIN.BRANCH]*.*;* successful.

      Deletes all files in the remote OpenVMS directory
      [MAIN.BRANCH].

    2.FTP> DELETE/DIRECTORY BRANCH.DIR;1
      250 RMD command successful.

      Deletes the directory [MAIN.BRANCH].

    3.FTP> DELETE "/users/venture/carton"
      250 DELE command successful.

      Deletes UNIX file with path name /users/venture/carton.

    4.FTP> mdelete /bids/west/january97/c*
      250 DELE command successful.
      250 DELE command successful.
      250 DELE command successful.

      Deletes three UNIX files starting with the letter "c" from
      directory /bids/west/january97. Note that the messages
      generated depend on the server. For example, for an OpenVMS
      server, messages would specify the names of the files deleted.
Close Help