public function reset()
    {
        $files = glob( "{$this->properties['location']}*" );
        foreach ( $files as $file )
        {
            if ( is_dir( $file ) )
            {
                ezcBaseFile::removeRecursive( $file );
            }
            else
            {
                if ( @unlink( $file ) === false )
                {
                    throw new ezcBaseFilePermissionException(
                        $file,
                        ezcBaseFileException::REMOVE,
                        'Could not unlink cache file.'
                    );
                }
            }
        }
    }