MZ How Do I remove Guard

How do I remove guard from the battle menu in RPG maker MZ ?
Moved to: Plugin Requests
@Caseymason1 The following snippet can be installed as a plugin to remove the guard command from battle.

JavaScript:
Window_ActorCommand.prototype.addGuardCommand = function() { };
Thank you

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-remove-guard.155060/