As far as I know, there is no specific command / request for deleting multiple databases without having a specific template in their names. Even I was asked to do a favor several times. Therefore, I did not research and did not find a specific solution. Then I tried the bottom hack. He worked without any problems. Maybe this can help you too.
Take all the databases using the command below.
SHOW DATABASES ;
Paste all of them into an excel / some other text file (I prefer nuclear power plants). Keep the only names you want to remove from the list. Remember to remove the worklist from the list.
Add DROP DATABASE in front of these names.
It's simple. Copy and paste all the ones on your desktop. You can complete all of them with one shot.
source share