Completely remove submenu added by script
I am trying to remove a submenu added to the main menu via ExtendScript.
Script to add:
app.menus[0].submenus.add('Menu from Script') ;
Script to remove:
app.menus[0].submenus.item('Menu from Script').remove() ;
In fact, I can remove it from the menu bar, but it will remain in Edit > Menu... customization screen.

To remove it, I had to manually delete the following cache file
~/Library/Caches/Adobe InDesign/Version 18.0-J/ja_JP/InDesign SavedData
What is the best way to delete it without it remaining in the menu customization screen with just for scripts?
Environment:
- InDesign 2023 (18.5.0.57)
- macOS 12.6.7
