PagefilesManager::emptyPath()
Empty out the published files (delete all of them)
Usage
// basic usage
$bool = $pagefilesManager->emptyPath();
// usage with all arguments
$bool = $pagefilesManager->emptyPath(bool $rmdir = false, bool $recursive = true);Arguments
| Name | Type(s) | Description |
|---|---|---|
$rmdir (optional) | bool | Remove the directory too? Default:false |
$recursive (optional) | bool | Recursively do the same for subdirectories? Default:true |
Return value
boolTrue on success, false on error 3.0.17, previous versions had no return value).
PagefilesManager methods and properties
API reference based on ProcessWire core version 3.0.253