Remove an SSH key from a server
curl --request DELETE \
--url https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"keys": [
{
"fingerprint": "SHA256:KH7zm92O0/dbuPCSkvuS9zdDvBneuFaHt+qwZbp8OYU",
"type": "ssh-ed25519",
"comment": "you@laptop",
"has_options": true,
"saved_key_id": "<string>",
"saved_key_name": "<string>",
"public_key": "<string>"
}
],
"read_at": "2023-11-07T05:31:56Z",
"changed": 123,
"saved_key_id": "<string>"
}
}{
"success": false,
"error": "The QEMU guest agent is not running on web-01. Install and start qemu-guest-agent in the server, then try again.",
"reason": "not_linux"
}{
"error": "<string>",
"message": "<string>"
}{
"success": false,
"error": "The QEMU guest agent is not running on web-01. Install and start qemu-guest-agent in the server, then try again.",
"reason": "not_linux"
}{
"success": false,
"error": "The QEMU guest agent is not running on web-01. Install and start qemu-guest-agent in the server, then try again.",
"reason": "not_linux"
}{
"success": false,
"error": "The QEMU guest agent is not running on web-01. Install and start qemu-guest-agent in the server, then try again.",
"reason": "not_linux"
}{
"success": false,
"error": "The QEMU guest agent is not running on web-01. Install and start qemu-guest-agent in the server, then try again.",
"reason": "not_linux"
}SSH keys
Remove an SSH Key from a VM
Remove the key with this fingerprint from root’s authorized_keys on a running Linux server, and from the server’s settings so it does not come back at the next restart. Put the fingerprint in the path as ssh-keygen -l shows it, slashes included. Root’s last key is removed only with confirm_last=true: a server created with only an SSH key has password sign-in turned off. Every change is emailed to the account owner and written to the audit log. Needs vm.ssh_keys; in the dashboard it also asks for a two-factor code.
DELETE
/
api
/
v1
/
vms
/
{id}
/
ssh-keys
/
{fingerprint}
Remove an SSH key from a server
curl --request DELETE \
--url https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint}"
headers = {"X-API-Key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys/{fingerprint}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"keys": [
{
"fingerprint": "SHA256:KH7zm92O0/dbuPCSkvuS9zdDvBneuFaHt+qwZbp8OYU",
"type": "ssh-ed25519",
"comment": "you@laptop",
"has_options": true,
"saved_key_id": "<string>",
"saved_key_name": "<string>",
"public_key": "<string>"
}
],
"read_at": "2023-11-07T05:31:56Z",
"changed": 123,
"saved_key_id": "<string>"
}
}{
"success": false,
"error": "The QEMU guest agent is not running on web-01. Install and start qemu-guest-agent in the server, then try again.",
"reason": "not_linux"
}{
"error": "<string>",
"message": "<string>"
}{
"success": false,
"error": "The QEMU guest agent is not running on web-01. Install and start qemu-guest-agent in the server, then try again.",
"reason": "not_linux"
}{
"success": false,
"error": "The QEMU guest agent is not running on web-01. Install and start qemu-guest-agent in the server, then try again.",
"reason": "not_linux"
}{
"success": false,
"error": "The QEMU guest agent is not running on web-01. Install and start qemu-guest-agent in the server, then try again.",
"reason": "not_linux"
}{
"success": false,
"error": "The QEMU guest agent is not running on web-01. Install and start qemu-guest-agent in the server, then try again.",
"reason": "not_linux"
}Updated October 21, 2026
Authorizations
API key for authentication. Each key is bound to a specific account.
Path Parameters
VM ID (UUID)
The key's SHA256 fingerprint
Example:
"SHA256:KH7zm92O0/dbuPCSkvuS9zdDvBneuFaHt+qwZbp8OYU"
Query Parameters
Remove the key even when it is root's last key
Last modified on October 21, 2026