Snakeoil Forums
[SOLVED] How to delete MPD music file database in Snakeoil? - Printable Version

+- Snakeoil Forums (https://forums.snakeoil-os.net)
+-- Forum: Snakeoil Topics (https://forums.snakeoil-os.net/Forum-Snakeoil-Topics)
+--- Forum: Support & Troubleshooting (https://forums.snakeoil-os.net/Forum-Support-Troubleshooting)
+--- Thread: [SOLVED] How to delete MPD music file database in Snakeoil? (/Thread-SOLVED-How-to-delete-MPD-music-file-database-in-Snakeoil)



How to delete MPD music file database in Snakeoil? - hkphantomgtr - 28-Apr-2025

I think I've screwed up that database and the update takes forever to complete.  I need a fresh UPDATE.  May I need learn how to delete the file database in Snakeoil so that I can start over?  Thanks a lot. Shy


RE: How to delete MPD music file database in Snakeoil? - Snoopy8 - 29-Apr-2025

I assume you do not want to start from scratch and reinstall Ubuntu and SO. Try sudo apt purge mpd and then reinstall using SnakeOil tab.


RE: How to delete MPD music file database in Snakeoil? - hkphantomgtr - 29-Apr-2025

(29-Apr-2025, 06:05 AM)Snoopy8 Wrote: I assume you do not want to start from scratch and reinstall Ubuntu and SO. Try sudo apt purge mpd and then reinstall using SnakeOil tab.

Thanks.  There is a small file holding this info, just I don't know the exact folder in SnakeOil SO.


RE: How to delete MPD music file database in Snakeoil? - agent_kith - 29-Apr-2025

The database is located in "/var/www/config/mpd_version/database"

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
Code:
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.


RE: How to delete MPD music file database in Snakeoil? - hkphantomgtr - 29-Apr-2025

(29-Apr-2025, 09:37 AM)agent_kith Wrote: The database is located in "/var/www/config/mpd_version/database"

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
 
Code:
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.

Thanks a lot, AK!! Shy