PHP ftp_delete() Function

PHP FTP Reference : Delete a file on the FTP server

Definition and Usage

The ftp_delete() function deletes a file on the FTP server.

Syntax

ftp_delete(ftp_conn, file);

Parameter Values

Parameter Description
ftp_conn Required. Specifies the FTP connection to use
file Required. Specifies the path of the file to delete

Technical Details

Return Value: TRUE on success, FALSE on failure
PHP Version: 4+

❮ PHP FTP Reference