Deregisters a local check

        Parameters:
            check (ObjectID): Check ID
        Returns:
            bool: ``True`` on success

        The agent will take care of deregistering the check from the Catalog.

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

        Parameters:
            check (ObjectID): Check ID
        Returns:
            bool: ``True`` on success

        The agent will take care of deregistering the check from the Catalog.
        """
        check_id = extract_attr(check, keys=["CheckID", "ID"])
        response = await self._api.get("/v1/agent/check/deregister", check_id)
        return response.status == 200