EntitiesJavaBedrock

/kill

Kill entities (deal infinite damage).

What is /kill used for?

What /kill is for

Instantly removes entities — players, mobs, dropped items, projectiles — matched by a target selector.

When to use /kill

Clear lag-causing dropped items, wipe hostile mobs, reset an arena between rounds, or respawn yourself quickly. With selector filters it's a precise cleanup tool.

Common /kill selectors

/kill @e[type=item] clears ground items, /kill @e[type=!player] removes everything but players, and /kill @e[type=#minecraft:undead] targets a whole entity tag.

Syntax

Parameters

targetsoptional
entity selector
Entities to kill. Defaults to executor.

Command builder

Configure the options below to generate a ready-to-paste /kill command.

@e = all entities; add filters like @e[type=zombie].

Examples

  • Kill every entity except players (cleans up mobs/items).

  • Kill yourself.

  • Remove all dropped items.

Common questions

How do I kill all mobs except players?

Use /kill @e[type=!player]. To target only hostile undead, /kill @e[type=#minecraft:undead] works, or filter by specific mob types.

How do I clear dropped items in Minecraft?

Run /kill @e[type=item] to remove every item entity lying on the ground — a quick way to clear lag.

Permission level

/kill requires Cheats (op level 2). In single-player you need the world's "Allow Cheats" toggle on. On a multiplayer server you need to be opped — see /op.