code: def clear_cache():
      '''
      Completely clear svnfs cache
      '''
      fsb_cachedir = os.path.join(__opts__['cachedir'], 'svnfs')
      list_cachedir = os.path.join(__opts__['cachedir'], 'file_lists/svnfs')
      errors = []
      for rdir in (fsb_cachedir, list_cachedir):
          if os.path.exists(rdir):
              try:
                  shutil.rmtree(rdir)
              except OSError as exc:
                  errors.append('Unable to delete {0}: {1}'.format(rdir, exc))
      return errorf clear_cache():
      '''
      Completely clear svnfs cache
      '''
      fsb_cachedir = os.path.join(__opts__['cachedir'], 'svnfs')
      list_cachedir = os.path.join(__opts__['cachedir'], 'file_lists/svnfs')
      errors = []
      for rdir in (fsb_cachedir, list_cachedir):
          if os.path.exists(rdir):
              try:
                  shutil.rmtree(rdir)
              except OSError as exc:
                  errors.append('Unable to delete {0}: {1}'.format(rdir, exc))
      return errors
docs: Completely clear svnfs cache