operationId: sshKeys_delete
summary: Delete an SSH Key
description: >-
To destroy a public SSH key that you have in your account, send a DELETE request
to `/v2/account/keys/$KEY_ID` or `/v2/account/keys/$KEY_FINGERPRINT`.
A 204 status will be returned, indicating that the action was successful and that
the response body is empty.
tags:
- SSH Keys
parameters:
- $ref: 'parameters/ssh_key_identifier.yml'
responses:
'204':
$ref: '../../shared/responses/no_content.yml'
'401':
$ref: '../../shared/responses/unauthorized.yml'
'404':
$ref: '../../shared/responses/not_found.yml'
'429':
$ref: '../../shared/responses/too_many_requests.yml'
'500':
$ref: '../../shared/responses/server_error.yml'
default:
$ref: '../../shared/responses/unexpected_error.yml'
x-codeSamples:
- $ref: 'examples/curl/sshKeys_delete.yml'
- $ref: 'examples/go/sshKeys_delete.yml'
- $ref: 'examples/ruby/sshKeys_delete.yml'
- $ref: 'examples/python/sshKeys_delete.yml'
security:
- bearer_auth:
- 'ssh_key:delete'