def METHOD_NAME(vmware_settings, instance_ids):
    """
    deletes an istance from the vmware
    :param vmware_settings: dictionary of vmware settings keys [name,
        user, password, port_group]
    :param instance_ids: list of instance ids to delete. These are typically
    stored as hostname
    """
    print('deleting instances ', instance_ids)
    conn = create_vmware_connection(vmware_settings)
    for host in instance_ids:
        try:
            vm = conn.get_vm_by_name(host)
            vm.power_off()
            vm = conn.get_vm_by_name(host)
            vm.destroy()
            print('terminated instance', host)
        except Exception as e:
            print(traceback.format_exc())
            print(e)