code: public void clear(NewRelicCache cache)
      {
          if(cache == null)
              throw new IllegalArgumentException("null cache");
          cache.applications().clear();
          cache.browserApplications().clear();
          cache.mobileApplications().clear();
          cache.plugins().clear();
          cache.monitors().clear();
          cache.servers().clear();
          cache.entities().clear();
          cache.alertPolicies().clear();
          cache.alertChannels().clear();
          cache.dashboards().clear();
      }
docs: Clears the cache.