Java 26.2
/kill
Target Selector
@pDistance
x rotation
y rotation
Team
Name
XP Level
/kill
Remove selected entities.
/kill @p
Remove entities
A bare /kill removes the executor, and /kill @e removes literally everything — item frames, armor stands and dropped items included. The selector is the whole command, so build it precisely: filter by type, name, tag or distance, and test the same selector with /execute if entity before running the destructive form.
Java 26.2
@pRemove selected entities.
/kill @p