
VMware DeleteVm
CertifiedEnterprise EditionDelete a VM from an ESXi host
VMware DeleteVm
Delete a VM from an ESXi host
Destroys a VM identified by name on the standalone host. Removes it from inventory and disk once the task completes.
type: io.kestra.plugin.ee.vmware.esxi.DeleteVmExamples
Delete a VM by name
id: delete_vm
namespace: company.team
tasks:
- id: delete
type: io.kestra.plugin.ee.vmware.esxi.DeleteVm
server: "esxi.mycompany.com"
username: "{{ secret('VMWARE_ESXI_USERNAME') }}"
password: "{{ secret('VMWARE_ESXI_PASSWORD') }}"
vmName: "vm-to-delete"
Properties
password *Requiredstring
Password
server *Requiredstring
Server hostname or IP
FQDN or IP of the vCenter or ESXi endpoint (no scheme or port).
username *Requiredstring
Username
e.g. Administrator@vsphere.local for vCenter or root for ESXi.
vmName *Requiredstring
VM name
Exact VM name on the ESXi host.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
port integerstring
443Server port
Defaults to 443.
trustStorePath string
Trust store path
Optional path to a PKCS12 trust store containing the CA certificate(s) used to validate the vCenter/ESXi server's TLS certificate. If omitted (or if the path does not exist), the JVM's default trust store (system CA certificates) is used instead. Certificate validation is always enforced; this plugin never disables TLS certificate validation.