# remove vmnic from esxi host

**URL:** <https://forum.ansible.com/t/remove-vmnic-from-esxi-host/34700>\
**Category:** Ansible Project\
**Tags:** vmware\
**Created:** [March 1, 2021, 12:12pm UTC](https://forum.ansible.com/t/remove-vmnic-from-esxi-host/34700 "2021-03-01T12:12:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_POK](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@Jon\_POK](https://forum.ansible.com/u/Jon_POK)\
**Post date:** [March 1, 2021, 12:12pm UTC](https://forum.ansible.com/t/remove-vmnic-from-esxi-host/34700/1 "2021-03-01T12:12:05Z")

</div>

Hello

I am testing vswitch module can create add nics but I want to remove nic from vswithc is it possible

- name: Add a VMware vSwitch with multiple NICs community.vmware.vmware\_vswitch:  
hostname: ‘{{ esxi\_hostname }}’  
username: ‘{{ esxi\_username }}’  
password: ‘{{ esxi\_password }}’  
switch: vmware\_vswitch\_0004  
nics:
- vmnic1
- vmnic2  
mtu: 9000  
state: present  
delegate\_to: localhost

state absent removing vswitch unfortunatly ☹

greetings  
Jon
