Here is a good KB from VMware on how to find unused replca virtual machines so that they can be safely removed from vCenter.
From the article:
Finding and removing unused replicas
- In vCenter Server or the server where the composer is installed, stop the VMware View Composer service.Note: When this Service is down, no recompose, refresh, or provisioning operations occur. Use a convenient maintenance window.
- Click Start.
- Type Services.
- Press Enter.
- Click the VMware View Composer Service.
- Click Stop.
- Open a command prompt.
- Navigate to the View Composer install directory.
- Run the sviconfig.exe command with the FindUnusedReplica operation:
SviConfig.exe -operation=FindUnusedReplica -DsnName=<the name of the Composer database DSN> -Username=<the user name of Composer database owner> -Password=<the password of Composer database owner>
SviConfig.exe -operation=FindUnusedReplica -DsnName=ComposerDB -Username=sa -Password=secret
- If the DsnName contains spaces, use quotes around the value.
- To determine the Composer DB DSN, user and password, see Determining the Composer DB DSN, username, and password.
- If the command finds any unused replicas, they are listed in a new file created in the current directory ( unused-replica-*.txt).
- Unused replicas can be unprotected and moved to a unique folder with the parameter:
SviConfig.exe -operation=FindUnusedReplica -DsnName=ComposerDB -Username=sa -Password=secret -Move=trueNotes:Open a vSphere Client and connect to vCenter Server.
- When using the move=true option, you will receive warning pop-ups. These are safe to ignore.
- Note The UnusedViewComposerReplicaFolder is created automatically if it does not exist, and unused replicas are moved to this folder.
- Open a vSphere Client and connect to vCenter Server
- Click Inventory > VMs and Templates.
- Remove the replicas located in the UnusedViewComposerReplicaFolder.
- Start the VMware View Composer service.