Remove up to half of the oldest stems. Cut them off where they emerge from the main trunk of the shrub.
Trim back the remaining older stems by up to half their height, depending on the desired size and shape of the shrub after pruning. Make the pruning cuts within ¼ inch of a stem branch or leaf node, to encourage branching at the pruning scar.
Prune back the remaining young branches to the desired length, cutting them back by no more than half their height. Make the cuts near a branch or node as you did with the older branches.
Inspect the gardenia for any dead or broken branches. Cut these out completely, removing them near a branch or node on healthy wood, or cutting them back to the main trunk depending on the severity of the damage.