I think you mean "to beat somebody to a pulp".