pydo.ssh_keys.delete()

Generated on 9 Jun 2026 from pydo version v0.36.0

Usage

client.ssh_keys.delete(ssh_key_identifier=512189)
Returns NoneRaises HttpResponseError

Description

To destroy a public SSH key that you have in your account, send a DELETE request to /v2/account/keys/{ssh_key_identifier} or /v2/account/keys/{ssh_key_identifier}. A 204 status will be returned, indicating that the action was successful and that the response body is empty.

Parameters

ssh_key_identifier object required

Either the ID or the fingerprint of an existing SSH key.

Request Sample

Show Request Sample
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

resp = client.ssh_keys.delete(ssh_key_identifier=512190)

More Information

See /v2/account/keys/{ssh_key_identifier} in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.