Niger, Mali and Burkina Faso have formally withdrawn from the regional bloc known as ECOWAS, the body said Wednesday.