You can now hide a library from the sidebar to help clean up your sidebar. Just right-click it and select Hide. The library is only hidden for you and everyone else who has access to the library will still see it in their sidebar. The notes in a hidden library are still accessible via search, so you don't have to worry about losing access to them.
And you can always view or unhide the library from Library Settings.