removing all connections after delete