API Proxmox DeleteVM

Cubix

Member
Jun 17, 2022
10
0
6
Hello,
I would like to know if it is possible with the proxmox API, to make API requests to delete a VM using an html request

Thanks in advance for your answers
 
But doesn't the GET function delete?
no, I pasted wrong output from the page I referenced in prior replies..:
Code:
Destroy the container (also delete all uses files).
HTTP:       DELETE /api2/json/nodes/{node}/lxc/{vmid}
 
CLI:    pvesh delete /nodes/{node}/lxc/{vmid}

Check this resource out https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/lxc/{vmid} - very useful..


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
no, I pasted wrong output from the page I referenced in prior replies..:
Code:
Destroy the container (also delete all uses files).
HTTP:       DELETE /api2/json/nodes/{node}/lxc/{vmid}
 
CLI:    pvesh delete /nodes/{node}/lxc/{vmid}

Check this resource out https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/lxc/{vmid} - very useful..


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Ok thank you very much
And also by chance is it possible to reinstall a lxc just with a different os
 
Last edited: