[#181][WIP] generalized remove_connection method

@AmrARaouf @Omar-Hossam @Fattouh92