<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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)