How to get rid of old connections

I’m trying to deploy the project. The old project was using Connection1. For the production I had to create Connection2, so for some time I kept 2 connections in the project.
Now I want to use only Connection2, so I deleted Connection1 from the project. It is gone from the connection list, but when I try do generate deployment package it still shows 2 (instead of one) connections. Any idea how to get rid of this old crap ?

Arthur