Twitter will remove users from its platform that have had no activity for several years, the social media network's CEO Elon Musk announced Monday.