# Delete image, vmdk and folder - wild VMS

**URL:** <https://forum.opennebula.io/t/delete-image-vmdk-and-folder-wild-vms/6128>\
**Category:** Product Support\
**Created:** [July 5, 2018, 10:58pm UTC](https://forum.opennebula.io/t/delete-image-vmdk-and-folder-wild-vms/6128 "2018-07-05T22:58:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccesario](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@ccesario](https://forum.opennebula.io/u/ccesario)\
**Post date:** [July 5, 2018, 10:58pm UTC](https://forum.opennebula.io/t/delete-image-vmdk-and-folder-wild-vms/6128/1 "2018-07-05T22:58:24Z")

</div>

Hi team,  
How can I enable option to delete image(from Sunstone GUI), VMDK disk and VM Folder from Wild (Imported VMs from vCenter) when terminate an instance? Currently when I terminate an instace I still see the VM folder name and VMDK disk inside VMware datastore and the image VM in Sunstone GUI.

I wold like when terminate an instace remove all objects in opennebula (Sunstone) and vCenter environment.

Best regards  
Carlos

* * *

**Versions of the related components and OS (frontend, hypervisors, VMs):**  
OpenNebula deb packages 5.5.90  
Ubuntu 16.04.4  
vCenter 6.5 build 8024368

**Steps to reproduce:**  
1 - Import vCenter Cluster  
2 - Import Datastores and Networks from vCenter Cluster  
3 - Import running VMs from vCenter Cluster - Wild option in Sunstone GUI  
4 - Terminate the instance

**Current results:**  
The image is listed on Sunstone  
The VMDK and VM Folder is present on vCenter Datastore

**Expected results:**  
Remove all VM references - Opennebula/Sunstone and vCenter env

---

<div class="post-metadata">

**Author:** ![ccesario](https://avatars.discourse-cdn.com/v4/letter/c/f19dbf/32.png) [@ccesario](https://forum.opennebula.io/u/ccesario)\
**Post date:** [July 6, 2018, 1:44pm UTC](https://forum.opennebula.io/t/delete-image-vmdk-and-folder-wild-vms/6128/2 "2018-07-06T13:44:37Z")

</div>

Updating…  
Even deleting the image

```
root@srvnebula:/etc/one# oneimage list
  ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS
  33 oneadmin oneadmin BlueIT1VM - dat datastore1 1024M OS Yes rdy 0
root@srvnebula:/etc/one# oneimage list
  ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS
  33 oneadmin oneadmin BlueIT1VM - dat datastore1 1024M OS Yes rdy 0
root@srvnebula:/etc/one# oneimage delete 33
root@srvnebula:/etc/one# oneimage list
  ID USER GROUP NAME DATASTORE SIZE TYPE PER STAT RVMS
 
root@srvnebula:/etc/one#

```

The image remain in Vmware Datastore

[![](https://pasteboard.co/HtcBmkf.png) ](https://pasteboard.co/HtcBmkf.png)

[https://pasteboard.co/HtcBmkf.png](https://pasteboard.co/HtcBmkf.png)

Regards  
Carlos

---

<div class="post-metadata">

**Author:** ![Reto](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@Reto](https://forum.opennebula.io/u/Reto)\
**Post date:** [September 25, 2018, 9:38am UTC](https://forum.opennebula.io/t/delete-image-vmdk-and-folder-wild-vms/6128/3 "2018-09-25T09:38:20Z")

</div>

Hi Carlos

I’ve exactly the same behaviour… Do you have already found a solution regarding this?

Best regards  
Reto
