API operation · users group
DELETE
/users/{name}/ssh-keys/{id}
First published 3 Oct 2026
0.1.0Unchanged since publicationRemove a customer's SSH public key
Who may call it
AdministratorResellerCustomer
Token scope, any of
usersallAnswers200 OK
Administrators, the customer's reseller and the customer can remove a key. Use the key's id from GET /users/{name}/ssh-keys. UrbeStack immediately removes the key from the customer's list and from the customer's authorized keys file under ssh_keys_dir.
As a command
Run as root on the serverParameters
namepath ·UsernameRequiredidpath ·integer, 1 or moreRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X DELETE "$API/users/alice/ssh-keys/1" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OKThe response body is the file itself.
Errors
8 errors, each a status and a sentence400--id is required400--user is required400Invalid id400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Username '<value>' is reserved401Authentication required404No SSH key <id> on the list of <user.name>404User '<user>' not foundNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/delete-users-name-ssh-keys-id/