selecting and deleting connections