Punch a pillow. Scream in the car. Get it off your chest.
It is the commonest advice about anger, and it has been tested.
Sources
Bushman BJ — experimental work on catharsis and venting, finding that expressing anger aggressively maintains or increases it rather than discharging it
The hydraulic or container model of anger, inherited from early psychodynamic theory, as the origin of the venting advice