Skip to main content

Revoke a device

DELETE 

/api/key/:name

Deletes a device and returns its name. The call revokes the device's OpenVPN certificate and regenerates the CRL, removes its WireGuard peer and routed networks, and regenerates the WireGuard interface, which briefly restarts WireGuard. If the device is connected, a disconnect event with reason revoked is logged. Pass owner to pick a device by owner and name; without it, an admin revokes the first device with that name. Users can revoke only their own devices; admins can revoke any device.

Request​

Responses​

Device revoked.