Was Virat Kohli Unfairly Dropped As ODI Captain?

Virat Kohli, in a press conference, says at the end of a meeting to select the test team to South Africa, he was essentially told, thank you very much, we no longer need you as one-day captain. Is this the right way to treat a man who has had a fantastic record for India in one-day cricket? He has no ICC tournament wins, but a splendid win-loss record and a superlative record as a batsman.