E.g. if you're using mpd v23, it will be "/var/www/config/mpd-v23/database" and so on.
To delete everything, you can try
sudo rm /var/www/config/mpd*/database -i
This command will prompt you whether to delete the file(s) or not.
Once this is done restart MPD and do a re-scan to regenerate the database.