Added removeAll dependencies functionality