Build a /kill command for Java or Bedrock with filters for items, mobs, names and tags. The preview shows which entity groups match your selector. Choose removal below the world when you want no loot or XP left nearby.
How to use
- Choose Java and its version, or Bedrock. Select a quick target and adjust the radius, name, tag or item ID.
- Refine the advanced selector and review what it removes. Choose Kill or Remove without drops; the latter excludes players.
- Copy the command into chat, or select command block / function to omit the slash. Download a .mcfunction file if needed.
For a nearby cleanup, choose Java 26.3, the nearby non-player preset, radius 7, Kill, and chat output. The exact result is /kill @e[type=!player,distance=..7]. In Bedrock, the same settings produce /kill @e[type=!player,r=7]. The radius argument changes with the edition, so copying the Java selector into a Bedrock command is not interchangeable.
A tag is a filter, not a guarantee that players are safe. In Kill mode, @e[tag=remove_me] can include tagged players. Switching that selector to Remove without drops produces /tp @e[type=!player,tag=remove_me] ~ -1000 ~. Review the player warning and the entity groups before copying. Non-player cleanup also includes entities such as armor stands, vehicles and dropped items; it is broader than removing hostile mobs. Invalid selectors produce no command rather than a partially repaired selector.
Frequently asked questions
How do I kill all dropped items?
Choose Dropped items to generate /kill @e[type=item]. It removes dropped items that are loaded in the world, not items stored in inventories or chests.
How do I remove mobs without drops?
Choose a mob type or tag, then Remove without drops. The command teleports matching entities to y=-1000. Wait for the void to remove them; loot and XP do not remain near the original position. Player selectors are refused.
Does /kill @e kill players?
Yes. @e includes players. Use @e[type=!player] to keep players, and review the preview before running a command. Other matching entities, including pets and armor stands, can still be removed.



