code: def metadata_remove_all_endpoints(self):
          
          metadata = load_mpe_service_metadata(self.args.metadata_file)
          metadata.remove_all_endpoints()
          metadata.save_pretty(self.args.metadata_file)
docs: Metadata: remove all endpoints from all groups