/

/kill

op 2Entities

/kill applies fatal damage to whatever matches the selector. The risk is always the selector, not the command — /kill on its own kills you, and /kill @e kills every entity in the world including players and item frames.

Commandready
8
/kill @e
Press C to copy
optional
All entities
@e

Who or what the command applies to

Examples

  • Clear dropped items
    /kill @e[type=item]
  • All mobs but not players
    /kill @e[type=!player]

Common questions about /kill

How do I kill all mobs without killing players?

Use /kill @e[type=!player]. Bear in mind this still removes item frames, armour stands, paintings and boats, since those are entities too.

How do I clear dropped items?

/kill @e[type=item] removes item entities on the ground. Add distance= to keep it local rather than world-wide.