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:
identity-broker.example.com).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 | Skip the confirmation prompt before 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 and the VCF Operations user. The script authenticates against both platforms 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 tries to reset SSO and waits for up to 30 minutes till SSO configuration is reset. 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.
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.