VMware DeleteVm

VMware DeleteVm

Certified
Enterprise Edition

Delete a VM from vCenter

Destroys a VM identified by name in vCenter. The VM is removed from inventory and disk after the task completes.

yaml
type: io.kestra.plugin.ee.vmware.vcenter.DeleteVm

Delete a VM by name from vCenter

yaml
id: delete_vm
namespace: company.team

tasks:
  - id: delete_vm
    type: io.kestra.plugin.ee.vmware.vcenter.DeleteVm
    server: "vcenter.mycompany.com"
    username: "{{ secret('VMWARE_VCENTER_USERNAME') }}"
    password: "{{ secret('VMWARE_VCENTER_PASSWORD') }}"
    vmName: "vm-to-delete"
Properties

Password

Server hostname or IP

FQDN or IP of the vCenter or ESXi endpoint (no scheme or port).

Username

e.g. Administrator@vsphere.local for vCenter or root for ESXi.

VM name

Exact VM name in vCenter inventory.

Default443

Server port

Defaults to 443.

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.