# DELETE /backups/remote/host-key

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the backups group.

Forget the recorded SSH host key for the remote backup server

- Who may call it: administrator
- Token scope, any of: backups, all
- Answers: 200 OK

Use this operation after reinstalling the remote host. UrbeStack removes the recorded SSH host key for backups.remote_host on backups.remote_port and returns 200. Remote backup copies are refused until the next urbestack-backup-remote-test records the host key it sees.

The token requires the backups scope. UrbeStack returns 403 to callers without administrator privileges and 404 if there is no recorded host key.

## As a command

- [urbestack-backup-remote-key](https://urbestack.com/docs/commands/urbestack-backup-remote-key.md): Shows the public key and fingerprint of UrbeStack's Ed25519 key pair for remote backups, along with any recorded host key.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X DELETE "$API/backups/remote/host-key" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "forgotten": "text"
}
```

## Errors

- 401: Authentication required
- 403: Insufficient privileges
- 404: No host key is recorded
