/ Kill

With this command you can kill entities (@a, @e, @p or @s)

Command logic: /kill [entity]


Kill a zombie

We will kill all the zombies.

/kill @e[type=zombie]
GIF