How to configure Multi-db db-config.php

I am confused on Multi-DB db-config.php and move-blogs.php because I made a ton of databases using the prefix_ instead of prefix_databasename_ can some one please tell me how to delete all of those data bases from phpMyadmin so that I can get it right? Or did I do it right?