code: public static void destroyEndpoints() {
          EndPointMgrImpl _this = (EndPointMgrImpl) getRef();
          synchronized (_this.endpoints) {
              _this.destroyEndpointMBeans();
              _this.endpoints.clear();
          }
      }
docs: Destroy all of the defined endpoints.