Error:A general system error occurred:Cannot delete content from library 19b1fa06-####-####-####-23379ec0e9c7, reason: (vim.fault.InaccessibleDatastore) {faultCause = null,faultMessage = null,datastore = ManagedObjectReference: type = Datastore, value = datastore-####, serverGuid = 3c723c9d-####-####-####-b24fb5a070c0,name = <DS_Name>,detail = notAccessibleWithPrivilege}.
Note: The steps below are irreversible. Before you make those changes, ensure that you have created a fresh backup or snapshot of the vCenter Server. If the vCenter Server is a member of an Enhanced Linked Mode (ELM) replication setup, keep in mind that you need to create backups or offline snapshots (in powered off state) for all ELM nodes. Similarly, when you need to restore the backup of this vCenter, or roll back to the snapshot, all of the other ELM nodes need to be restored/rolled back as well. For more information, see https://knowledge.broadcom.com/external/article/313886.
service-control --stop vmware-vpxdservice-control --stop vmware-content-library/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgresselect id,name from cl_library where name = '<cl_name>';select * from cl_library_storage where library_id = '<ID from step 2>';delete from cl_library_storage where library_id = '<ID from step 2>';delete from cl_storage where id = '<storage_id from step 3>';delete from cl_library where name = '<ID from step 2>';\qAfter deleting the Content library if some Library items fails to delete and remain as stale, follow the below steps to delete them manually.
26a5342c-####-####-####-28c539b3f444 | YYYY-MM-DD HH:MM:SS.106 | YYYY-MM-DD HH:MM:SS.761 | YYYY-MM-DD HH:MM:SS.507 | 19b1fa06-####-####-####-23379ec0e9c7 | cl_libraryitem_name | ovf | https://vc_fqdn:443/cls/vcsp/lib/3c723c9d-####-####-####-b24fb5a070c0/654b5d3c-####-####-####-f24af0dda5d7/item.json | t
34513c64-####-####-####-18fc014e4d21 | YYYY-MM-DD HH:MM:SS.508 | YYYY-MM-DD HH:MM:SS.604 | YYYY-MM-DD HH:MM:SS.88 | 19b1fa06-####-####-####-23379ec0e9c7 | cl_libraryitem_name | ovf | https://vc_fqdn:443/cls/vcsp/lib/3c723c9d-####-####-####-b24fb5a070c0/6c4d0d95-####-####-####-34e555137cfa/item.json | t
service-control --start vmware-vpxdservice-control --start vmware-content-library