Once a content library has been deleted, there is no built-in vCenter option to undo the delete operation.
Workaround
There are three available options to address an accidentally deleted content library:
- Backup and Restore
- If available, restore from a recent vCenter Server Appliance (VCSA) backup.
Note: VCSA backups only include metadata, not actual content.
- Use a third-party backup solution (e.g.: CommVault, Veeam) if configured to back up content libraries.
- Rebuilding and Syncing
- Create a new content library
- Navigate to Menu > Content Libraries
- Click on "Create New Library" and follow the wizard
- Sync with local libraries:
- Set up new subscriptions to sync content from other local libraries
- Manual upload:
- Uploading any missing content (e.g.: ISOs, VM templates) manually
- Preventative Measures to avoid future incidents
- Restrict permissions from content library deletion to specific users
- Enable confirmation prompts for deletion actions