Fix #777: Added a prune_library management command to remove obsolete metadata

8 jobs for 777-library-pruning in 3 minutes and 4 seconds (queued for 3 seconds)