News
Game
Guides
Downloads
Versions
/kill
COMMANDS MOBS & ENTITIES CHEATS · LEVEL 2 Added in 1.14 or earlier

/kill command in Minecraft

The /kill command removes entities at once: mobs, dropped items, projectiles, armor stands or players. Without a target it kills you. It is the fastest way to clear lag caused by piles of items, reset a test area or get out of a spot where you are stuck.

Syntax

/kill [<targets>]
ArgumentExpectsWhat it does
targetsoptionalEntity selectorone or severalEntities to kill, @s by default. Narrow @e with filters: @e[type=minecraft:item], @e[type=!minecraft:player] or @e[tag=boss].
All 2 forms
  • /kill
  • /kill <targets>

Examples

Kill your own player

/kill

Without a target, you are the one who dies. Handy when you are stuck.

Java 26.3

Clear dropped items

/kill @e[type=minecraft:item]

Removes every item lying on the ground in loaded chunks, a quick fix for lag.

Java 26.3

Kill everything except players

/kill @e[type=!minecraft:player]

Mobs, items, armor stands and minecarts disappear; players stay.

Java 26.3

Clean zombies around you

/kill @e[type=minecraft:zombie,distance=..20]

Only zombies within 20 blocks are killed.

Java 26.3

Remove tagged entities

/kill @e[tag=boss]

Kills only the entities you marked with /tag ... add boss.

Java 26.3
Build your command

Fill in the fields, then copy the command.

Command generator

Be careful with @e

/kill @e removes every loaded entity, players included, along with item frames, armor stands, minecarts and pets. Always add a filter. type=!minecraft:player spares players, distance=..20 limits the radius and tag= targets entities marked with /tag.

What /kill ignores

/kill uses a damage type that bypasses invulnerability. Players in Creative mode die too, and a Totem of Undying does not save anyone. A killed player drops the inventory as with any other death, unless keep_inventory is on.

Common uses

  • /kill @e[type=minecraft:item] clears dropped items and reduces lag.
  • /kill @e[type=minecraft:zombie,distance=..20] cleans a test area.
  • /kill alone gets you out when you are stuck, at the cost of a trip back from your spawn.

When you test with /summon, give each summoned entity a tag so that the cleanup removes nothing else. With /execute you can kill based on conditions, for example only the entities standing on a certain block. The answer "Killed ..." or "Killed ... entities" tells you how many were removed.

✓ Checked in Java Edition 26.3 · updated 2 November 2026

/kill: FAQ

Does /kill work on players in Creative mode?

Yes. /kill bypasses invulnerability, so it works in Creative mode and a Totem of Undying does not prevent the death.

How do I clear dropped items without killing mobs?

Target only items with /kill @e[type=minecraft:item]. Mobs, players and other entities are left untouched.

How do I use /kill?

Type it in the chat with cheats on: /kill [<targets>].

Who can use /kill?

Cheats on, or operator level 2.

Related commands

/dataCheats/tagCheats/rotateCheats/summonCheats