Empty your own inventory
/clearRemoves every item you carry, armor and off hand included.

/clear deletes items from one or more players' inventories: everything, one type of item, or a set number. With a maximum of 0 it removes nothing and only counts the matching items, which is handy for maps, shops and command block systems.
/clear [<targets> [<item> [<maxCount>]]]| Argument | Expects | What it does |
|---|---|---|
| targetsoptional | Player selectorone or several | Players whose inventory is cleared: a name, @s for yourself, @p for the nearest or @a for everyone. Defaults to you. |
| itemoptional | Item test | Item to remove: an ID like minecraft:dirt, a tag like #minecraft:logs, or * for any item. |
| maxCountoptional | Whole numberat least 0 | Maximum number of items to remove. Without it, all matching items go; 0 only counts them. |
/clearRemoves every item you carry, armor and off hand included.
/clear @a minecraft:dirtDeletes all Dirt from the inventories of all online players.
/clear @p minecraft:diamond 5Removes up to five diamonds from the nearest player, fewer if he carries less.
/clear @s #minecraft:logsThe logs tag matches all wood logs, so one command clears them all.
/clear @s minecraft:emerald 0Removes nothing and reports how many Emerald items you carry.
Fill in the fields, then copy the command.
Command generatordiamond_swordnetherite_swordnetherite_pickaxeelytratotem_of_undyingenchanted_golden_applegolden_appleender_pearlfirework_rockettridentmacecommand_blockbarrierdebug_sticklightstructure_blockspawnerknowledge_bookWithout arguments, /clear empties your whole inventory, armor and off hand included. The items are deleted, not dropped. The Ender Chest is a separate storage and stays untouched. The item argument is an item predicate: a plain ID, a tag such as #minecraft:logs, or * for any item.
With 0 as maxCount, nothing is removed and the game only reports a count, for example "Found 12 matching item(s) on player Steve". With /execute and store result, you can copy that number into a /scoreboard objective and check whether a player carries enough Emerald items before you take them as a price.
No items were found on player Steve: the player has none of the requested item.No player was found: the name or selector matches nobody online.Containers such as chests are not affected: for those, use /item. To hand items back, use /give.
✓ Checked in Java Edition 26.3 · updated 2 November 2026
It deletes them. Nothing appears on the ground and the items cannot be recovered.
No, it only works on player inventories. To empty a container slot, use /item replace with minecraft:air.
Type it in the chat with cheats on: /clear [<targets> [<item> [<maxCount>]]].
Cheats on, or operator level 2.