# \[SOLVED\] Remove imported VMs

**URL:** https://forum.opennebula.io/t/solved-remove-imported-vms/6936
**Category:** Installation & Configuration
**Tags:** solved
**Created:** [February 26, 2019, 6:18pm UTC](https://forum.opennebula.io/t/solved-remove-imported-vms/6936 "2019-02-26T18:18:23Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![ahuertas](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ahuertas/32/7487_2.png) [@ahuertas](https://forum.opennebula.io/u/ahuertas)
#### Post date: [April 18, 2022, 7:58am UTC](https://forum.opennebula.io/t/solved-remove-imported-vms/6936/10 "2022-04-18T07:58:42Z")

</div>

Hello @Pat and @sudhakar,

If you try to import a VM with an already assigned VNC port, you need to first change the port in vCenter and then import it to OpenNebula.

In order to remove a VM in HOLD state:

- `onedb update-body vm --id <ID>`
- Remove the tag `<IMPORTED>`
- `onevm recover --delete-db <ID>`

Best,  
Álex.

---

_[View the full topic](https://forum.opennebula.io/t/solved-remove-imported-vms/6936)._
