kvm.destroy

kvm.destroy

Note: This method is not available in RVC 3.13.0. Calling it returns error -32601 Method not found: kvm.destroy. To check which methods the RVC server on a node supports, run rvc.api.

The kvm.destroy command was removed in RVC v3.0.0.

Hard stop a KVM virtual machine.

Arguments

ArgumentTypeDescriptionRequired
hostnameStringThe name of the virtual machine.Yes

JSON-RPC Request

{"jsonrpc":"2.0","id":1,"method":"kvm.destroy","params":{"hostname":"kvm1"}}

JSON-RPC Response

{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "Destroying kvm1..."
}

RVC CLI Example

rvc kvm destroy --hostname kvm1

Response

Destroying kvm1...
Maintenance mode set to enabled.
checking status 30...
kvm1 successfully destroyed.