Article cover image

How to Clear Inventory in Minecraft

This article is for Minecraft Java Edition.

There are many situations where you might need to clear your inventory in Minecraft. This guide will show you several ways to do so.

The X Button

If you are in Creative Mode, it's really easy to clear your inventory. Just open your inventory, and you will find an [X] button on the bottom-right side, as shown below.

[X] button in your inventory
The [X] button in the Creative inventory

Simply hold

Shift
and click the button. Boom, all items in your inventory are gone. You've made it!

Now, let's look at the second method.

Using a Command

Did you know there's a command called /clear? As its name suggests, it's used to clear a player's inventory. The format for clear is:

/clear <target_player> <item> <max_amount>

However, if you execute this command without any parameters, it will target yourself and clear your entire inventory. For those new to Minecraft's command system, just follow these simple steps:

  1. Open the chat or command panel (T by default).
  2. Type in /clear
  3. Press
    Enter
Input /clear command
Inputting the /clear command

Okay, you should see that your inventory is empty now.

If You Are in Survival Mode

Unfortunately, if you are in Survival Mode and don't have permission to use commands, your options are more limited. If you do have command permissions (for example, if you're in a single-player world with cheats enabled), you can simply use the /clear command discussed above.

However, let's talk about situations where you can't use commands. The following methods work in Java Edition on PC.

In Minecraft, you can throw an entire stack of items at once by pressing

Ctrl
+ your throw key (Q by default). This will significantly speed up the process of emptying your inventory. You can throw items stack by stack until it's clear.

Another quick way is to put all your items into a chest. While the chest is open, hold

Shift
and click on an item stack in your inventory. The entire stack will instantly transfer into the chest. This is a very fast way to clear your inventory.

Just Die

This method is drastic, but it absolutely works. Just die, and your inventory will be empty when you respawn (unless the keepInventory gamerule is enabled).