MC Toolkit

MC Toolkit / Commands / Player Command Builder / Clear Command Generator

Clear Command Generator

Build a /clear command to wipe a player's whole inventory or remove a specific item up to a max count — exact Java Edition syntax, copy and paste.

4 argument paths · Minecraft 26.2 · from Mojang's own command tree

  • /clear
  • /clear <targets>
  • /clear <targets> <item>
  • /clear <targets> <item> <maxCount>

Most of these need operator permission — run them from an op's chat, a command block, or the server console.

Looking for more Minecraft tools?

A suite of client-side generators, viewers and converters — all free, all in your browser.