Remove a directory (optionally recursively)
This is procedural version of the $files->rmdir()
method. See that method for more options.
Usage
// basic usage
$bool = wireRmdir (string $path);
// usage with all arguments
$bool = wireRmdir (string $path, bool $recursive = false);
Arguments
Name | Type(s) | Description |
---|---|---|
path | string | |
recursive (optional) | bool | If set to true, all files and directories in $path will be recursively removed as well. |
Return value
bool
See Also
Functions methods and properties
API reference based on ProcessWire core version 3.0.236