This question already has an answer here:
This is a bit embarrassing.
BACKSTORY: I got griefed recently in my friend's multiplayer server: the offender spawned loads of Ender Dragons which attacked me, and then he kicked me out and banned me. I've been given access again (and the offender has himself been banned).
Actual question: I'm now back in creative mode, difficulty=peaceful, carrying on with my building. But all the Ender Dragons are still hanging around and getting in the way - they're really distracting. I've tried attacking them with a diamond sword but haven't managed to kill a single one yet. There must be a command i can type to get rid of them all - is there?
EDIT - i've googled this a bit and a common solution is to do
/killall EnderDragon but the
/killall command doesn't seem to be activated on this server.