Deregisters a local service

        Parameters:
            service (ObjectID): Service ID
        Returns:
            bool: ``True`` on success

        The deregister endpoint is used to remove a service from the local
        agent. The agent will take care of deregistering the service with the
        Catalog. If there is an associated check, that is also deregistered.

async def deregister(self, service):
        """Deregisters a local service

        Parameters:
            service (ObjectID): Service ID
        Returns:
            bool: ``True`` on success

        The deregister endpoint is used to remove a service from the local
        agent. The agent will take care of deregistering the service with the
        Catalog. If there is an associated check, that is also deregistered.
        """
        service_id = extract_attr(service, keys=["ServiceID", "ID"])
        response = await self._api.get(
            "/v1/agent/service/deregister", service_id)
        return response.status == 200