diff --git a/gso/services/kentik_client.py b/gso/services/kentik_client.py index edc1a8611120d32f916d4944711f918e8549f34f..1f4c7ce2a5f9e21daa07959ed695d3b7e7a6f0e6 100644 --- a/gso/services/kentik_client.py +++ b/gso/services/kentik_client.py @@ -144,3 +144,8 @@ class KentikClient: self._send_request("DELETE", f"v5/device/{device_id}") self._send_request("DELETE", f"v5/device/{device_id}") + + def remove_device_by_fqdn(self, fqdn: str, *, archive: bool = True) -> None: + """Remove a device from Kentik, by its :term:`FQDN`.""" + device_id = self.get_device_by_name(fqdn)["id"] + self.remove_device(device_id, archive=archive)