How to clear inventory in minecraft
Christopher Snyder
Updated on March 21, 2026

If players don’t need any items and simply want to remove them from their inventory quickly, they can simply press the drop button (‘Q’ is the default button on PC) while having the mouse cursor …
There are other answers below:
This video teaches you how to clean up your inventory fast!Ask us questions! SUBSCRIBE-
About Press Copyright Contact us Creators Advertise Developers Terms Privacy Policy & Safety How YouTube works Test new features Press Copyright Contact us Creators …
ArgumentsNoteExamplesSee Also To clear your entire inventory: clearTo clear all items from Alice’s inventory: clear AliceTo clear all wool items from Alice’s inventory: clear Alice minecraft:woolTo clear all orange wool items from the inventory of all players: clear @a minecraft:wool 1[Bedrock Edition only] or clear @a minecraft:orange_wool[Java Edition only]
You can use the command /clear [targets] [item] [maxCount], where:
- targets is optional. It is the name of the player (or a target selector) whose inventory you wish to clear. …
- item is optional. It is the item to clear (See list of Minecraft items). If no item is specified, then all items in the player’s inventory will be cleared.
- maxCount is optional. It is the maximum number of items that will be cleared. If you omit this parameter or use -1, all matching items will be cleared.
Related Questions
How do you clear a player’s inventory in Minecraft?
1. You can use the command /clear [targets] [item] [maxCount], where: targets is optional. It is the name of the player (or a target selector) whose inventory you wish to clear. If no player is specified, it will default to the player running the command. item is optional. It is the item to clear (See list of Minecraft items).
How do I clear items in the inventory?
Items in the inventory and items from container (chest, crafting table, etc.) dragging over the cursor can be cleared. In Bedrock Edition, items dragging from the inventory can also be cleared, while in Java Edition only if not in creative mode can these be cleared.
How to clear the inventory and armor slots?
If you want to clear the inventory yet not the armor slots, you can’t use the player.getInventory ().clear (); method as it clears the full inventory. You will need to get the inventory and loop through each item and remove it (I believe you can just check the slot of the item and if it’s an armor slot skip that item).
How do I clear items in the game?
Items in the inventory and items from container (chest, crafting table, etc.) dragging over the cursor can be cleared. In Bedrock Edition, items dragging from the inventory can also be cleared, while in Java Edition only if not in creative mode can these be cleared. In Java Edition, items in players’ four crafting slots can also be cleared.