Minecraft – Remove Minecraft gamerules in-game

minecraft-java-edition

Is there a way to remove Minecraft gamerules in-game?

I made a gamerule "New" and now want to remove it but I can't find a way to do it.

I searched in the minecraft help list and found nothing.

I also tried /gamerule and found nothing.

Best Answer

No, there is no command to remove a custom gamerule in-game. It is, however, possible with a program such as NBTEdit.

Open up your world file, and navigate to level.dat > Data > Gamerules. enter image description here

Within those gamerules you should see the one you created. Select it, and press delete. When you save and open up your world, it should be gone.