Kill mobs
Remove all the mobs around you with the /kill command: a quick way to clear an area.
Commands
/kill @e[type=!player] Kills all entities except players
/kill @e[type=zombie] Kills all zombies
/kill @e[type=item] Removes all items lying on the ground
/kill @e[type=!player,distance=..50] Kills entities within a 50-block radius
How it works
The /kill command instantly kills the target you give it. /kill @e kills ALL entities in the world (careful: players included!). The safer version, /kill @e[type=!player], kills everything except players. Selectors let you pick your targets precisely: /kill @e[type=zombie] kills only zombies, and /kill @e[type=zombie,distance=..50] kills zombies within a 50-block radius. The /kill command is a must for clearing an area of excess mobs, removing dropped items (type=item) or resetting farms. On PvP servers, /kill @s is a quick way to respawn, though you lose your items (unless keepInventory is turned on). Keep in mind that using /kill on the Ender Dragon doesn't grant the "Free the End" advancement.
Practical tips
NEVER type /kill @e without the type=!player filter, or you'll kill yourself too!
/kill @e[type=item] clears the lag caused by dropped items.
Use distance=..N to limit the range to N blocks around you.