WP_Filesystem_FTPext::rmdir( string $path, bool $recursive = false ): bool

In this article

Deletes a directory.

Parameters

$pathstringrequired
Path to directory.
$recursivebooloptional
Whether to recursively remove files/directories.

Default:false

Return

bool True on success, false on failure.

Source

public function rmdir( $path, $recursive = false ) {
	return $this->delete( $path, $recursive );
}

Changelog

VersionDescription
2.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.