
100
Field Description
REST Restarts.
RETR Downloads
files.
STOR Uploads
files.
APPE Appends
uploading.
DELE Deletes
files.
MKD Creates
folders.
XMKD
Extended command with the meaning of MKD.
RMD Removes
folders.
XRMD
Extended command with the meaning of RMD.
ABOR
Aborts the transmission.
SIZE
Size of the transmission file.
RNFR Original
name.
RNTO New
name.
rmdir
Use
rmdir
to permanently delete a directory on the FTP server.
Syntax
rmdir
directory
Views
FTP client view
Predefined user roles
network-admin
Parameters
directory
: Specifies the name of a directory on the remote FTP server.
Usage guidelines
You can perform this operation only after you log in to the FTP server.
To perform this operation, you must have delete permission on the FTP server.
Delete all files and subdirectories in a directory before you delete the directory. For more information
about how to delete files, see the
delete
command.
Executing the
rmdir
command also deletes the files in the recycle bin of the specified directory.
Examples
# Delete the empty directory
subdir1
.
ftp>rmdir subdir1
250 The directory was successfully removed
Related commands
delete