code: def invalidate_all(self):
          '''Clear all items from the cache'''
  
          LOG.debug('clearing cache')
          appcache = str(self.get_app_cache())
          for dirpath, dirnames, filenames in os.walk(appcache):
              for name in filenames:
                  try:
                      pathlib.Path(dirpath, name).unlink()
                  except OSError:
                      pasf invalidate_all(self):
          '''Clear all items from the cache'''
  
          LOG.debug('clearing cache')
          appcache = str(self.get_app_cache())
          for dirpath, dirnames, filenames in os.walk(appcache):
              for name in filenames:
                  try:
                      pathlib.Path(dirpath, name).unlink()
                  except OSError:
                      pass
docs: Clear all items from the cache