php man page for ssh2_sftp_rmdir

Query: ssh2_sftp_rmdir

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

SSH2_SFTP_RMDIR(3)							 1							SSH2_SFTP_RMDIR(3)

ssh2_sftp_rmdir - Remove a directory

SYNOPSIS
bool ssh2_sftp_rmdir (resource $sftp, string $dirname)
DESCRIPTION
Removes a directory from the remote file server. This function is similar to using rmdir(3) with the ssh2.sftp:// wrapper.
PARAMETERS
o $sftp - An SSH2 SFTP resource opened by ssh2_sftp(3). o $dirname -
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 Removing a directory on a remote server <?php $connection = ssh2_connect('shell.example.com', 22); ssh2_auth_password($connection, 'username', 'password'); $sftp = ssh2_sftp($connection); ssh2_sftp_rmdir($sftp, '/home/username/deltodel'); /* Or: rmdir("ssh2.sftp://$sftp/home/username/dirtodel"); */ ?>
SEE ALSO
rmdir(3), ssh2_sftp_mkdir(3). PHP Documentation Group SSH2_SFTP_RMDIR(3)
Related Man Pages
sftp-server(1m) - hpux
sftp-server(1m) - x11r4
sftp-server(1m) - php
sftp-server(1m) - minix
sftp-server(1m) - osf1
Similar Topics in the Unix Linux Community
Rules for Homework &amp; Coursework Questions Forum
Please Welcome Don Cragun as Lead Moderator
Status of UNIX.COM Forum Transformation
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun