Home > PHP > Function > SSH2 > ssh2_sftp_unlink()

ssh2_sftp_unlink()

ssh2_sftp_unlink - Delete a file

Syntax

bool ssh2_sftp_unlink (resource $sftp, string $filename)

Arguments

  • sftp - An SSH2 SFTP resource opened by ssh2_sftp().
  • filename

Description

Deletes a file on the remote filesystem.

Version

PHP PECL ssh2 >= 0.9.0

Return value

Returns TRUE on success or FALSE on failure.