PagefilesManager::emptyAllPaths()
Empties all file paths related to the Page, and removes the directories
This is the same as calling the PagefilesManager:emptyPath() method with the
$rmdir and $recursive options as both true.
Usage
$bool = $pagefilesManager->emptyAllPaths();Return value
bool True 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