/kill Command in Minecraft Java Edition

Eliminate Players and Entities Instantly

Java EditionPlayers & EntitiesPermission: Level 2Bedrock version →

The /kill command in Minecraft Java Edition allows you to eliminate players or entities in the world. It requires permission level 2, which means you must be an operator on a server or have cheats enabled in single-player.

Players often use this command to reset their own character, remove stuck entities, or clear every entity in the world at once. Starting in version 1.15, the target argument became optional instead of required.

Syntax (Java 26.3, 1 form)

  1. /kill [<targets>]

The forms you will use most

/kill [<targets>]
Eliminates the specified target player or entity, or uses the default behaviour if you leave the target blank.

Arguments

ArgumentTypeWhat it means
<targets>target selectorSpecifies who to eliminate using a player name, a UUID, or a target selector such as @p, @a, @e, or @s.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.15 Syntax changed.
    + /kill [<targets>]− /kill <targets>
  2. 1.13 Already in the game in 1.13, the oldest Java version we track.

Tips

Common mistakes

Java vs Bedrock

Minecraft Bedrock Edition also includes the /kill command, where it uses the syntax /kill [target: target].

See /kill in Bedrock Edition →

FAQ

What permission level do I need to use the /kill command?

You need permission level 2, which means you must be a server operator or have cheats enabled in a single-player world.

Do I have to include a target when typing /kill?

In version 1.15 up to 26.3, the target argument is optional in /kill [<targets>], whereas in earlier versions like 1.13 the syntax /kill <targets> required you to specify a target.

What can I put in the targets argument for /kill?

You can enter a player name, a UUID, or a target selector like @p, @a, @e, or @s.

Related commands

/advancement/attribute/damage/defaultgamemode/effect/experience/gamemode/ride/rotate/spawnpoint/spectate/spreadplayers/summon/swing/teleport/tp