Deleting a Content Library
Deleting a library is permanent. Delete its objects first, then the library, then clean up users' and groups' access indexes.
Use elv-admin from elv-live-js with the library owner's key.
1. Prepare
- List all objects:
GET /qlibs/{qlibid}/q?filter_by_user=false, paging withstart/limit(100 per page by default) - Search the metadata of your objects for these object IDs and their version hashes (
hq__), and update or remove those links - Note which groups had access, from the Fabric Browser's Access Groups tab on the library and Groups tab on each object, and which users you granted access directly
2. Delete the objects
elv-admin batch_helper delete_contents iq__AAA,iq__BBB
Retry any Failed to delete: objects, and continue when the step 1 listing comes back empty.
3. Delete the library
elv-admin library_delete ilib...
4. Clean up access indexes
For the signer, its groups, and every user and group from step 1:
elv-admin object_cleanup <iusr... | igrp...> library
elv-admin object_cleanup <iusr... | igrp...> content_object
To confirm, run object_list on each one and check that the deleted objects are gone:
elv-admin object_list <iusr... | igrp...>