Zend certified PHP/Magento developer

How can I rebuild my KODI library from the scratch?

How can I rebuild my KODI library from the scratch? For instance, I have some movies which are indexed as TV shows and vice versa. Manually updating those files is not an option.

I could delete all metadata in the directory, but I do not want to loose all my media sources.

What options do I have?

I have tried this here: https://www.pwrdown.com/kodi/clean-kodi-library/
But somehow the movies and TV shows are not empty thereafter.

Go into your Kodi settings menu
Select “Media Settings”
Make sure that your settings level is set to “Expert”
Go into the Library tab and select “Clean library”
In the next window, pick yes.