RMdir subcommand—Remove a directory on the remote host

Purpose

Use the RMdir subcommand to remove a directory on the remote host.

Format

Read syntax diagramSkip visual syntax diagramRMdirdirectory

Parameters

directory
Specifies the name of the directory to be removed.

Usage

  • The RMdir subcommand sends a request to the remote host FTP server to remove a directory with name directory from the current remote directory.
  • The RMdir subcommand can be used to delete a PDS.