Delete unnecessary files - Refresh Piwik installation

If I’m to “refresh” my Piwik installation, that is, to have it as a latest version without any files that have remained from years of constant upgrade, is it enough to leave the config file and delete all, or else?

Thanks

To try again:

Are the config file and database all what needs to be kept?

Thank you

Yes