Open the Kodi Media Player, and go to the Settings tab. Enter the Library tab under Media Settings and select Clean Library. Finally, click Yes to confirm.