Did ECOWAS have legal basis to remove President Jammeh from power militarily?

Following President Yahya Jammeh’s adamant refusal to step down and hand over power peacefully to Adama Barrow, who won the presidential elections in Gambia, the Economic Community of West African States (ECOWAS), a regional West-African bloc, was on standby to oust Mr Jammeh.
no image
Fred Nkusi