original_string: 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.'
                      );
                  }
              }
          }
      }
code: 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.'
                      );
                  }
              }
          }
      }
code_tokens: 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.' ) ; } } } }
docstring: Resets the whole storage.
  
  Deletes all data in the storage including {@link ezcCacheStackMetaData}
  that was stored using {@link storeMetaData()}.
docstring_tokens: Resets the whole storage .