I
Igor_K
Guest
Hello everyone!
I want to delete VM via API.
As I can see, there is an optional parameter:
> root@{my_node}:~# pvesh help /nodes/{my_node}/qemu/{vmid} -v
> USAGE: delete /nodes/{node}/qemu/{vmid} [OPTIONS]
> Destroy the vm (also delete all used/owned volumes).
>
> -skiplock boolean
>
> Ignore locks - only root is allowed to use this option.
I run in cmd as below, but something is wrong:
> root@{my_node}:~# pvesh delete /nodes/{my_node}/qemu/{vmid} --skiplock=true
> usage: delete [path]
I also try like this:
> pvesh delete /nodes/{my_node}/qemu/{vmid} -skiplock=true
> pvesh delete /nodes/{my_node}/qemu/{vmid} --skiplock=1
> pvesh delete /nodes/{my_node}/qemu/{vmid} -skiplock=1
Is it my error? Maybe, it is an error in API-documentation or in delete command?
PS
pve:/> get version
200 OK
{
"release" : "20",
"repoid" : "0428106c",
"version" : "3.0"
}
I want to delete VM via API.
As I can see, there is an optional parameter:
> root@{my_node}:~# pvesh help /nodes/{my_node}/qemu/{vmid} -v
> USAGE: delete /nodes/{node}/qemu/{vmid} [OPTIONS]
> Destroy the vm (also delete all used/owned volumes).
>
> -skiplock boolean
>
> Ignore locks - only root is allowed to use this option.
I run in cmd as below, but something is wrong:
> root@{my_node}:~# pvesh delete /nodes/{my_node}/qemu/{vmid} --skiplock=true
> usage: delete [path]
I also try like this:
> pvesh delete /nodes/{my_node}/qemu/{vmid} -skiplock=true
> pvesh delete /nodes/{my_node}/qemu/{vmid} --skiplock=1
> pvesh delete /nodes/{my_node}/qemu/{vmid} -skiplock=1
Is it my error? Maybe, it is an error in API-documentation or in delete command?
PS
pve:/> get version
200 OK
{
"release" : "20",
"repoid" : "0428106c",
"version" : "3.0"
}