Breeders would use a sharp pair of shears for the task.
The reason tails were docked was to prevent injury as the dog ran through heavy brush while flushing game.
However, today's cocker spaniels are kept mostly as pets rather than hunters.
Tail docking does have consequences on the animal.