In VCF Operations 9.0, it is possible to delete VCF Identity Broker appliance from the Fleet Management > Lifecycle > Components page. However, in VCF Operations 9.1 such an option to delete the Identity Broker component is not provided.
delete_vidb.py script attached to this KB.Warning: This script removes the Identity Broker from multiple systems. Do not interrupt the script once it has started.
Use this script only as a last resort when the Identity Broker is in an unrecoverable state and must be completely removed and reinstalled.
Before you run this script:
Run this script only when:
Note: Use username admin for <vcf-services-runtime-username>; the password of vmware-system-user is the same as the admin password.
Warning: Prior to deletion, verify that you have a backup of any critical component data which needs to be retained.
python3 delete_vidb.py \ --vidb-fqdn <vidb-fqdn> \ --fleet-fqdn <fleet-lcm-fqdn> \ --vcf-services-runtime-fqdn <vcf-services-runtime-fqdn> \ --vcf-services-runtime-username <vcf-services-runtime-username> \ --vcf-operations-fqdn <vcf-operations-fqdn> \ --vcf-operations-username <vcf-operations-username>Replace each placeholder (such as <vidb-fqdn>) with the actual value for your environment.
| Parameter | Short | Required | Description |
|
| Yes | FQDN (host) of the Identity Broker component to be deleted. |
|
| Yes | Fleet LCM FQDN. |
|
| Yes | VCF Services Runtime FQDN. |
|
| Yes | VCF Services Runtime username. |
|
| No | VCF Services Runtime password. Prompted in the console if not provided. |
|
| Yes | VCF Operations FQDN. |
|
| Yes | VCF Operations username. |
|
| No | VCF Operations password. Prompted in the console if not provided. |
|
| No | VCF Operations appliance root password, used to SSH into the VCF Operations node and remove cached SSO entries from the database. Prompted in the console if not provided. |
|
| No | Skip the confirmation prompt before delete. |
Note: If there are multiple VCF services runtime deployments, provide the details of the one that has Identity broker you are planning to delete.
Copy delete_vidb.py to a host with Python 3 and network access to the required endpoints.
Run the script with the required parameterpython3 delete_vidb.py \ --vidb-fqdn <vidb-fqdn> \ --fleet-fqdn <fleet-lcm-fqdn> \ --vcf-services-runtime-fqdn <vcf-services-runtime-fqdn> \ --vcf-services-runtime-username <vcf-services-runtime-username> \ --vcf-operations-fqdn <vcf-operations-fqdn> \ --vcf-operations-username <vcf-operations-username>
When prompted, enter the passwords for the VCF Services Runtime user, the VCF Operations user, and the VCF Operations appliance root account. The script authenticates against both platforms and verifies root SSH access to the VCF Operations node up front, so any incorrect password is reported before any deletion is attempted.
Review the confirmation prompt that lists every location to be cleaned up, and enter y to proceed (or n to abort). Use --force-delete to skip this prompt for unattended runs.
The script then performs the cleanup and prints an informational line as each stage completes. The SSO deletion is asynchronous: the script polls every 10 seconds for up to 30 minutes for the identity provider to be removed. If the SSO configuration is not removed within 30 minutes, the script fails and asks you to manually delete the SSO configuration on the given Identity Broker and retry. As part of Step 1, after the SSO configuration is cleared, the script also SSHes into the VCF Operations node (as root) and removes the Identity Broker's cached entries from the vcopsdb database.
Note: Power off the VCF Identity Broker 9.0.x virtual machines from the vSphere Client after the script completes.
The script logs each stage and its completion, for example:
Authenticating with VCF Services Runtime (...)...
VCF Services Runtime authentication successful.
Authenticating with VCF Operations (...)...
VCF Operations authentication successful.
About to remove Identity Broker '{self.vidb_fqdn}' and its SSO configuration from all required locations.
WARNING: This removes the Identity Broker from multiple systems. Do not interrupt the script once it has started.
Proceed with cleanup? (y/n): y
=== Step 1: VCF Operations SSO and resource cleanup ===
...
[INFO] Step 1 completed: VCF Operations SSO and resource cleanup.
=== Step 2: VCF Operations component manager cleanup ===
...
[INFO] Step 2 completed: VCF Operations component manager cleanup.
=== Step 3: Fleet and VCF Services Runtime cleanup ===
...
[INFO] Step 3 completed: Fleet and VCF Services Runtime cleanup.
[INFO] Identity Broker cleanup completed successfully.