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) - sunos
sftp-server(1m) - x11r4
ssh2_sftp_lstat(3) - php
ssh2_sftp_mkdir(3) - php
sftp-server(1m) - xfree86
Similar Topics in the Unix Linux Community
User Guide: Posting in the Emergency Forum
UNIX.COM 2017 Year End Summary
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
Please Welcome Don Cragun as Lead Moderator
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun