empty basic library: how to remove

A document contained two Basic libraries: Standard and Library1.
After some testing the modules of Library1 were successfully deleted. The library itself, though empty, couldn’t be deleted using the organizer. It is still shown for the reloaded document and listed in the Basic/script-lc.xml and in the Dialogs/dialog-lc.xml subfiles wrapped into the file of the saved document.

Do I need to manipulate the archive?

By the way: I actually did it manipulating the archive. However, that’s not a reasonable way for everyday use.

To test this, I created Standard and Library1 in an .odt document with two macros containing a
MsgBox command. Saved, closed, and verified that the file contained Basic and Dialogs subfolders when unzipped.

Then I went to Tools → Macros → Organize
Dialogs → Libraries
, changed the location to the document, and deleted

Since the Standard library could not be deleted, I changed to the
Modules tab, selected Module1 under Standard and deleted it.

After saving, exiting and reopening, all macro libraries are completely gone. No “Enable Macros” warning, and no Basic or Dialogs subfolders when unzipped.

Version: on Windows

Thanks - and strange: I didn’t succeed with deleting an empty library from a .ods.
Will try again tomorrow.