How to get rid of horses? [duplicate]

Solution 1:

This command will kill all loaded horses.

/kill @e[type=horse]

This command will kill all horses within 10 blocks of you:

/kill @e[type=horse,r=10]