# DELETE /move/host-key

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

UrbeStack release 0.2.35 API operation in the move group.

Forget the source server's recorded SSH host key

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

Use this after reinstalling the source server or when its SSH host key changes. Operations that require a recorded key refuse to connect until a new key is recorded. Use POST /move/test with look to inspect the new key, then submit the verified fingerprint in pin to record it.

Returns 404 if no host key is recorded. Requires a token with the users scope. Returns 403 if the caller lacks administrator privileges.

## As a command

- [urbestack-move-forget](https://urbestack.com/docs/commands/urbestack-move-forget.md): Forgets the source server of a move.

## 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/move/host-key" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "forgotten": "text",
  "host_key": true
}
```

## Errors

- 400: '<zone>' is not a zone this machine knows: timedatectl list-timezones names them
- 400: A new job is queued or running
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid IPv6 address
- 400: Invalid domain name
- 400: Invalid port
- 400: Invalid setting key
- 400: Job parameters must be an object
- 400: PHP <version> cannot be the default: it is hidden from new choices on this server
- 400: PHP <version> cannot be the default: it is not installed on this server
- 400: Unknown job type
- 400: Unknown setting '<key>'
- 400: jobs.keep_days (<keep>) may not be smaller than jobs.show_days (<show>): a job cannot be shown longer than it is kept; 0 keeps them for good
- 401: Authentication required
- 403: Insufficient privileges
- 404: No host key is recorded
- 404: No source server is named
- 404: Setting '<key>' not found
- 409: <key> cannot take that value: <SECOND>{<k>}{on} <sp> (<k>). <SECOND>{<k>}{move}, or choose another
- 409: <key> cannot take that value: the panel listens on port <port> (panel.port). Move the panel first, or choose another
- 409: <s.subject> cannot take port <port>: 
- 409: <s.subject> cannot take port <port>: <why>
- 409: <s.subject> cannot take port <port>: it is the panel's port (panel.port)
- 409: A change is already armed for revert (
- 409: Sharing is required with this license.
- 409: The panel cannot take port <port>: 
- 409: The panel cannot take port <port>: <why>
- 409: These are the nameservers of a distribution network with several nodes, and every node lists the same ones. To remove a nameserver or move it to another node, use the actions beside its name on DNS zones › Nameservers & addresses, or urbestack-dns-nameserver
