Remove the Guard command?

Hello, I'm still very new to RPG Maker MZ, and I'm trying to trim the fat of my battles a bit. I'd like to remove the Guard command from the selectable skill list, but I haven't found a plugin in RPG Maker MZ that allows that. Is there a simple way to do so, or any other of the battle commands for that measure? Thank you again for being patient with me!
I think you can just disable the addGuardCommand() function? Would loading the below as a plugin work for you (untested)?

JavaScript:
Window_ActorCommand.prototype.addGuardCommand = function() {
//    this.addCommand(TextManager.guard, "guard", this._actor.canGuard());
};

Otherwise please follow this posting guide so we can better help you.
what you need is something usually called a "command manager" type plugin. Those allow you to modify the command list of any actor to your liking, especially giving different actors different commands.
But they can be used to reorder or remove commands as well.

and Attack and Guard are hardcoded commands, they always go to skill #1 and #2 and are impossible to remove without a plugin. Although you can rename and reassign them to other functions by changing the base skills.

sorry, I can't provide a link as I haven't used MZ yet.
Wait… wouldn’t you just be able to use

seal skill >>> guard? In the actor traits? EDIT: no that just grays out the guard skill.

In any case, save the earlier code as a js file, load it in as a plugin, and gone will be your guard skill. I'm not sure what command manager plugin @Andar is talking about, but AFAICT that's all you need if you want to disable the Guard command.
I'm not sure what command manager plugin @Andar is talking about

The following is an example made by Tsukihime for MV, I don't know if it would work with MZ or FOSSIL.
As you can see, it can do a lot more than just disabling Guard - it can modify the default list or dynamically hide or disable any command including but not limited to attack, guard, item and more.
That's why those kind of plugins or scripts were called "Command Managers"

Unfortunately Yanfly never made an MV equivalent to his Ace Battle Command List, so I think that function was also never implemented by Visustella to MZ
As you can see, it can do a lot more than just disabling Guard - it can modify the default list or dynamically hide or disable any command including but not limited to attack, guard, item and more.
Ahh I see. This is standard functionality in Battle Core, so I think that’s no problem. Just an not sure if OP wants to go that route, and if he just wants yo get rid of guard, he can use my snippet methinks.
Ahh I see. This is standard functionality in Battle Core, so I think that’s no problem. Just an not sure if OP wants to go that route, and if he just wants yo get rid of guard, he can use my snippet methinks.
Hello! Thank you all for answering! Yes, this little snippet did exactly what I wanted! I'm running several kind of cobbled together plugins from a lot of places right now, so the Visustella cores tend to conflict with them badly, so this script here was exactly what I needed! Thank you so much, this forum has been a great help.
If it matters, you could also replace the Guard skill with a different universal skill, one that is more relevant to your game than "user takes less damage for a turn".

Original thread: https://forums.rpgmakerweb.com/threads/remove-the-guard-command.177137/