Deletes the results of this query, it first fetches all the items to be
        deletes and then issues a PATCH against the list uri of the resource.

def delete(self):
        """
        Deletes the results of this query, it first fetches all the items to be
        deletes and then issues a PATCH against the list uri of the resource.
        """
        uris = [obj["resource_uri"] for obj in self.results()]
        data = self.resource._meta.api.resource_serialize({"objects": [], "deleted_objects": uris})
        self.resource._meta.api.http_resource("PATCH", self.resource._meta.resource_name, data=data)

        return len(uris)