Barryvdh\Debugbar\Storage\FilesystemStorage::garbageCollect PHP Method

garbageCollect() protected method

Delete files older then a certain age (gc_lifetime)
protected garbageCollect ( )
    protected function garbageCollect()
    {
        foreach (Finder::create()->files()->name('*.json')->date('< ' . $this->gc_lifetime . ' hour ago')->in($this->dirname) as $file) {
            $this->files->delete($file->getRealPath());
        }
    }