# Delete template vCenter

**URL:** <https://forum.opennebula.io/t/delete-template-vcenter/3324>\
**Category:** Product Support\
**Created:** [November 22, 2016, 1:17pm UTC](https://forum.opennebula.io/t/delete-template-vcenter/3324 "2016-11-22T13:17:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amenendez](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@amenendez](https://forum.opennebula.io/u/amenendez)\
**Post date:** [November 22, 2016, 1:17pm UTC](https://forum.opennebula.io/t/delete-template-vcenter/3324/1 "2016-11-22T13:17:30Z")

</div>

I’ve been playing with the VM persistent instantiation and I’ve found when I delete the template that is created when the vm is terminated, it is removed from OpenNebula but not from the vmWare Datastore. Is an expected behaviour or I’m missing something?

Thanks!

---

<div class="post-metadata">

**Author:** ![mcabrerizo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/mcabrerizo/32/4829_2.png) [@mcabrerizo](https://forum.opennebula.io/u/mcabrerizo)\
**Post date:** [November 23, 2016, 12:16pm UTC](https://forum.opennebula.io/t/delete-template-vcenter/3324/2 "2016-11-23T12:16:30Z")

</div>

Hi Adrian!  
yes, that should be expected. [According to this docs section:](http://docs.opennebula.org/5.2/deployment/vmware_infrastructure_setup/vcenter_driver.html?highlight=vcenter)

> There are different behavior of the vCenter resources when deleted in OpenNebula. The following resources are NOT deleted in vCenter when deleted in OpenNebula:

> - VM Templates
> - Networks
> - Datastores

Cheers!

---

<div class="post-metadata">

**Author:** ![amenendez](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@amenendez](https://forum.opennebula.io/u/amenendez)\
**Post date:** [November 23, 2016, 5:00pm UTC](https://forum.opennebula.io/t/delete-template-vcenter/3324/3 "2016-11-23T17:00:07Z")

</div>

Thanks Miguel!

I think is interesting to delete templates from OpenNebula. For example, imagine that a final user creates 10 templates from his vms and after a couple of days he delete 8. There will be 8 templates in vCenter that are not registered in OpenNebula. You must go into your vCenter and find them without know anything about them.

I’m going to create a request on OpenNebula dev portal and paste the link here for futures references.

---

<div class="post-metadata">

**Author:** ![amenendez](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@amenendez](https://forum.opennebula.io/u/amenendez)\
**Post date:** [November 24, 2016, 8:40am UTC](https://forum.opennebula.io/t/delete-template-vcenter/3324/4 "2016-11-24T08:40:47Z")

</div>

I’ve created a ticket:

[http://dev.opennebula.org/issues/4939](http://dev.opennebula.org/issues/4939)
