interface_not_removable
HTTP 409 The primary network interface cannot be removed
What happened
You asked to delete `net0`, the interface the server was created with. It stays for as long as the server exists, whatever other interfaces the server has.
What to do
Change `net0` instead of deleting it. To free the public addresses it carries, change it with `PATCH /v1/servers/{id}/network-interfaces/net0` and `{"ips": []}`: the interface stays in the public network with no address. To take the server off the network behind it, move the interface to another network with `{"network_id": N}`; the addresses it leaves are listed in the response's `billable_ips`. Either change restarts a running server once, and the addresses stay with the project until you release them with `DELETE /v1/ips/{id}`.
Retrying
Repeating this request will not help.
How it arrives
{
"type": "https://docs.fiberax.com/errors/interface_not_removable",
"title": "The primary network interface cannot be removed",
"status": 409,
"code": "interface_not_removable",
"request_id": "a277dcd1ca652c65"
}
Branch your code on code, never on the wording of title.