Docs

Search documentation

Console
Browse API reference

Delete SSH key

DELETE/v1/ssh-keys/{ssh_key_id}

Fails with 409 resource_in_use while an instance uses the key.

Request

cURL
curl --fail-with-body --silent --show-error \
  --request DELETE \
  --url "https://api.tachora.ai/v1/ssh-keys/${TACHORA_SSH_KEY_ID}" \
  --header "Authorization: Bearer ${TACHORA_API_KEY}"

Set TACHORA_API_KEY and any resource IDs in your shell before running the command.

Path parameters

ssh_key_idstringRequired
  • Example "ssh_01jd3v7k8m0000000000000000"

Responses

204

Deleted.

401

Missing, invalid, expired or revoked credentials, or an API key whose creator no longer has access (unauthenticated).

403

Authenticated but not allowed (permission_denied), including users outside the sign-in allowlist.

404

The resource does not exist or the caller cannot see it (not_found).

409

Something still uses the resource (resource_in_use).

401, 403, 404, 409 JSON response fields
errorobjectRequired
error.codestringRequired

Stable, machine-readable error code.

  • Values invalid_argument, unauthenticated, permission_denied, not_found, conflict, billing_setup_required, idempotency_key_reused, internal, unavailable, rate_limited, insufficient_capacity, quota_exceeded, subnet_full, resource_in_use, not_implemented
error.detailsobject[]

Per-field problems for invalid_argument.

error.details[].fieldstringRequired
error.details[].messagestringRequired
error.messagestringRequired

Human-readable explanation. Do not parse.

error.request_idstring

Echoes the X-Request-Id response header.