Does this guy sound jealous and insecure to you?
Don't get me wrong… Protecting your girlfriend (or any woman) from the unwanted advances of a creepy guy who doesn't know boundaries is the right thing to do. But it doesn't sound like this boyfriend had any idea what his girlfriend's relationship with this guy was. Not to mean that she has any sort of romantic relationship with this chap… But the boyfriend could definitely be overstepping if she is routinely friendly with him to the point that the delivery guy had a right to be concerned when there was suddenly a strange man in her apartment. If that's what the delivery guy was thinking… then he was doing exactly what the boyfriend thought he was doing: Protecting a woman from a creepy stranger.
If the girlfriend was concerned about the driver's behavior then the boyfriend is completely right for his actions that followed. But, if he's just being jealous and completely overstepping and encroaching on his partner's relationships with other people, then he is just an insecure a-hole.