ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

How-to delete orphaned Horizon View replica

By Vladan SEGET | Last Updated: June 3, 2014

Shares

After reinstalling composer server in my lab I was left with some orphaned replicas in the lab. While I was able to delete the virtual desktop VMs it was not possible to delete those replicas VM from within the vSphere client as the option is grayed out. The replica VM has some strange name as you can see.

Horizon View Replica

So what's the options? In fact the only option is a command line utility called sviconfig installed on the composer server. Well there are two and I'll show you the more easy one as the one provided by VMware KB 1008704 did not work and I had error code 11 all the time when executing the command on my View Composer server:

sviconfig -operation=UnprotectEntity -DsnName=name_of_DSN -DbUsername=Composer_DSN_User_Name -DbPassword=Composer_DSN_Password -VcUrl=https://vCenter_Server_address/sdk -VcUsername=Domain\User_of_vCenter_Server_account_name -VcPassword=vCenter_Server_account_password -InventoryPath=/Datacenter_name/vm/VMwareViewComposerReplicaFolder -Recursive=true

Note: If you receive Error code 11 when you run the command and your replicas are in a folder and not directly under the Data center. The path should be manually substituted in place of VMwareViewComposerReplicaFolder.

Here you can see that the right click do not allows you to delete the replica like that.

View Replica, unable to delete

How-to delete orphaned Horizon View replica

The problem is the replica VM can't be deleted in the normal circumstances, but it can be deleted when you connect to the ESXi host directly! Sure, you can delete the view replica by connecting directly to the host (not vCenter), but vCenter view is not updated and the replica is still present there.

You need to proceed with this steps:

Select the cluster view > disconnect host > remove > and add the ESXi host back to vCenter and you're done! The reference to the replica is gone!

All this can be done in less than 5 min. -:)

Shares
5/5 - (5 votes)

| Filed Under: Server Virtualization Tagged With: How-to delete orphaned Horizon View replica

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Jay says

    November 7, 2014 at 5:33 pm

    Worked for me… Very helpful, thank you for sharing!

  2. Real says

    November 25, 2014 at 7:36 pm

    It only it were this simple…

    To remove a ESXi host from a cluster, it must be in maintenance mode. For this, all VMs must be migrated to another host or they must be powered down. Moreover, if the ESXi host is part of a vDSwitch, it cannot be removed from the cluster. The switch essentially has to be deleted and recreated without the host. This will invalidate all the VM’s network adapter mappings until the switch has been added back. One can add hosts to a vDSwitch, but not remove it until the adapters have been reassigned. All this is a lot of work and would take several hours for a ESXi host with a lot of VMs.

  3. Shyju Kanaprath says

    December 17, 2014 at 7:19 am

    Nice. Worked for me also in vSphere 5.5 Cluster.

  4. Rodrigo says

    July 23, 2015 at 5:49 pm

    Worked like a charm, thank you!

  5. Jerome B says

    September 1, 2015 at 1:47 pm

    Very nice ! worked for me too in vSperre 5.5 Cluster with a replica VIEW.
    Thanks a lot

  6. Hamid says

    April 18, 2016 at 10:20 pm

    Thanks a lot.It works for me.

  7. Antonio Melo says

    March 13, 2017 at 5:27 pm

    Hello !

    I need help! I have too orphaned replicas, but I didn’t install view composer, I installed a new feature VMware Horizon Instant Clone..

    How I delete this replicas?

    Thank you!

    • Adrian says

      August 1, 2017 at 2:08 pm

      for deleting instant clones you need to use “IcUnprotect.cmd”. see https://pubs.vmware.com/horizon-7-view/topic/com.vmware.horizon-view.desktops.doc/GUID-6025D684-2E05-4857-9C24-18F16DDC38FD.html

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!
  • Installation of StarWind VSAN Plugin for vSphere
  • Protect Mixed environments with Nakivo Physical Machine recovery (bare metal)
  • No more FREE licenses of VMware vSphere for vExperts – What’s your options?
  • Tails – Your Private OS on USB Stick
  • StarWind V2V Converter Now has CLI
  • Veeam VHR ISO v2 – 2025 Download and Install
  • Deployment OVA and Installation of Nakivo Backup and Replication for VMware

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in