code: func (c *thirdPartyResources) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error {
  	return c.client.Delete().
  		NamespaceIfScoped(c.ns, len(c.ns) > 0).
  		Resource("thirdPartyResources").
  		VersionedParams(&listOptions, api.Scheme).
  		Body(options).
  		Do().
  		Error()
  }
docs: // DeleteCollection deletes a collection of objects.