Home > PHP > Function > FTP > ftp_delete()

ftp_delete()

ftp_delete - Deletes a file on the FTP server

Syntax

bool ftp_delete (resource $ftp_stream, string $path)

Arguments

  • ftp_stream - The link identifier of the FTP connection.
  • path - The file to delete.

Description

ftp_delete() deletes the file specified by path from the FTP server.

Version

PHP 4, 5

Return value

Returns TRUE on success or FALSE on failure.