/kill command
The /kill command instantly kills the entity or player you specify. With no arguments, it kills whoever runs it. With selectors, you can get rid of specific mob types, items on the ground or all entities at once.
Syntax
Java and Bedrock Edition
/kill [target] Parameters in <angle brackets> are required. Parameters in [square brackets] are optional.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| target | selector/player | No | The entity to kill. Without an argument, the command kills whoever runs it. @e targets all entities, including players. |
Usage examples
Tips and tricks
The type=!player filter keeps players from getting killed by accident. Always use it when you want to clear entities on a server.
/kill @e without filters kills EVERYTHING, including players and minecarts. Use it with care on a server with other players.
On a laggy server, /kill @e[type=item] is the first fix to try. Removing thousands of dropped items from the ground improves TPS instantly.
Combine it with /execute to kill mobs only in a specific biome or area.
Related commands
Frequently asked questions
How do you use the /kill command in Minecraft?
Open the chat with the T or / key and type the command using this syntax: /kill [target]. The /kill command instantly kills the entity or player you specify. With no arguments, it kills whoever runs it. With selectors, you can get rid of specific mob types, items on the ground or all entities at once.
What permissions does /kill require?
The /kill command requires permission level 2: Operator (OP 2). In singleplayer with cheats turned on, you automatically have full permissions. On a multiplayer server, you need operator status, which is granted with the /op command.
Does /kill work in Bedrock Edition?
Yes, the /kill command works in both Java Edition and Bedrock Edition, with similar syntax.



