MZ How to remove options from the Main Menu?

I'm making a system where I use the Background sound track as an extra track for the background music. For example, when you enter a building, one of the tracks gets muted. When you leave the building, the background track's volume is reverted, without pause. This overrides the user's settings for the channel volumes. Can I get a plugin or script that allows me to remove the BGM volume and BGS volume options from the main menu? Or, is this located in the main .js files in the \js directory of the game? If so, where can I find it and delete it?
Alternatively, is there a plugin that does all this without the need to use the Background Sound track to have two music tracks?

1672736805006.png
Place this in the plugin and it should work as its in the rmmz_windows

JavaScript:
Window_Options.prototype.addVolumeOptions = function() {
    //this.addCommand(TextManager.bgmVolume, "bgmVolume");
    //this.addCommand(TextManager.bgsVolume, "bgsVolume");
    this.addCommand(TextManager.meVolume, "meVolume");
    this.addCommand(TextManager.seVolume, "seVolume");
};

I dont own MZ, but this should do the trick.

if you get an error as it can give one, add this on top

/*:
* @target MZ
*/

you can add more info if you like, but it should do the trick if not mistaken.
Place this in the plugin and it should work as its in the rmmz_windows

JavaScript:
Window_Options.prototype.addVolumeOptions = function() {
    //this.addCommand(TextManager.bgmVolume, "bgmVolume");
    //this.addCommand(TextManager.bgsVolume, "bgsVolume");
    this.addCommand(TextManager.meVolume, "meVolume");
    this.addCommand(TextManager.seVolume, "seVolume");
};

I dont own MZ, but this should do the trick.

if you get an error as it can give one, add this on top

/*:
* @target MZ
*/

you can add more info if you like, but it should do the trick if not mistaken.
Worked like a charm. Thanks!
1672745063169.png

Original thread: https://forums.rpgmakerweb.com/threads/how-to-remove-options-from-the-main-menu.153723/