This question already has an answer here:
I started a stable and had to get specific horse types. I spawned way too many horses and now they're all just standing in the middle of the village I live in. I don't know how to make them go away and I don't want to spend 8 hours killing them all.
Can I spawn a mob that will kill them for me?