top of page

Can't delete vApp and VM

Error:

[ bfe374cf-fd73-4076-86da-e842ba50b13a ] No row with the given identifier exists: [com.vmware.vcloud.common.model.logicalresource.VdcLogicalResourceModel#f8e04f29-5810-4fe6-9178-94b7ab049f25]


When the client navigate to this vApp and VM in vCD UI, we do not see any details about this VM and vApp as they are blank. For any normal vApp and VM, this shouldn't be the case. 


For today's blog I will show you how manually deleted the VM and vApp related entries from database using below commands


Steps:

  • Login to primary Cell via SSH

  • Type "sudo -su postgress psql vcloud"

  • Type \x so that you have good display

  • Type delete from guest_personalization_info where vapp_vm_id = '64e67cb2-7468-44e2-a5bb-308e85f597ce';

  • Type delete from vapp_vm where vapp_id = '0f83b085-e41e-474e-b1b5-1c7b68092caa';

  • Type delete from vapp_logical_resource where vapp_id = '0f83b085-e41e-474e-b1b5-1c7b68092caa'

  • Post that, deleted the VM under this vApp folder in vCenter and deleted the vApp from vCD UI


Note: This is my personal and owned experience that I love to share in the VMware Community. I hope you appreciate it, thank you


bottom of page