async def delete(self, query, *, dc=None):
        """Delete existing prepared query

        Parameters:
            query (ObjectID): Query ID
            dc (str): Specify datacenter that will be used.
                      Defaults to the agent's local datacenter.
        Results:
            bool: ``True`` on success
        """
        query_id = extract_attr(query, keys=["ID"])
        response = await self._api.delete("/v1/query", query_id,
                                          params={"dc": dc})
        return response.status == 200
async def delete ( self , query , * , dc = None ) : query_id = extract_attr ( query , keys = [ "ID" ] ) response = await self . _api . delete ( "/v1/query" , query_id , params = { "dc" : dc } ) return response . status == 200
Delete existing prepared query

        Parameters:
            query (ObjectID): Query ID
            dc (str): Specify datacenter that will be used.
                      Defaults to the agent's local datacenter.
        Results:
            bool: ``True`` on success