The ftp_rmdir() function deletes a directory on the FTP server.
bool ftp_rmdir ( resource $ftp_stream , string $directory )
Removes the specified directory on the FTP server.
Parameter | Description |
---|---|
ftp_stream | The link identifier of the FTP connection |
directory | The directory to delete. This must be either an absolute or relative path to an empty directory. |
Returns TRUE on success or FALSE on failure.