When does Serverless create a new AWS API Gateway vs overwrite an old one?

Hi
After deploying I’ve noticed that a certain times Serverless overwrites my old API Gateway with new values that I’ve specified in the serverless.yml file and at other times it simply creates a new one, leaving the old behind but stripped of all resources (endpoints for example).

My question is, what could be the cause of this?