CacheFile::removeAll()

Remove all cache files in the given path, recursively

Usage

// basic usage
$int = CacheFile::removeAll(string $path);

// usage with all arguments
$int = CacheFile::removeAll(string $path, bool $rmdir = false);

Arguments

NameType(s)Description
$pathstring

Full path to the directory you want to clear out

$rmdir (optional)bool

Set to true if you want to also remove the directory

Return value

int

Number of files/dirs removed


CacheFile methods and properties

API reference based on ProcessWire core version 3.0.255