Home > PHP > Function > FTP > ftp_rmdir()

ftp_rmdir()

ftp_rmdir - Removes a directory

Syntax

bool ftp_rmdir (resource $ftp_stream, string $directory)

Arguments

  • 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.

Description

Removes the specified directory on the FTP server.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.