src/Server.php
public function deleteCache($path)
    {
        if (!$this->groupCacheInFolders) {
            throw new InvalidArgumentException(
                'Deleting cached image manipulations is not possible when grouping cache into folders is disabled.'
            );
        }

        return $this->cache->deleteDir(
            dirname($this->getCachePath($path))
        );
    }
public function deleteCache($path)
    {
        if (!$this->groupCacheInFolders) {
            throw new InvalidArgumentException(
                'Deleting cached image manipulations is not possible when grouping cache into folders is disabled.'
            );
        }

        return $this->cache->deleteDir(
            dirname($this->getCachePath($path))
        );
    }
public function deleteCache ( $ path ) { if ( ! $ this -> groupCacheInFolders ) { throw new InvalidArgumentException ( 'Deleting cached image manipulations is not possible when grouping cache into folders is disabled.' ) ; } return $ this -> cache -> deleteDir ( dirname ( $ this -> getCachePath ( $ path ) ) ) ; }
Delete cached manipulations for an image.
@param  string $path Image path.
@return bool   Whether the delete succeeded.
Delete cached manipulations for an image .