The main idea is to run "show tables" in your database and use the results to select the tables you want. I don't think MySQL allows you to do anything with the result set from the "show tables", but I'm probably wrong.
Here's a quick and dirty solution using a shell:
mysql -u your_user -D your_database_name -e "show tables" -s | egrep "^Whatever_" | xargs -I "@@" echo mysql -u your_user -D your_database_name -e "DROP TABLE @@"
This will print all shell commands to drop tables starting with "Whatever_". If you want it to actually execute these commands, delete the word echo.
EDIT : I forgot to explain the above! I do not know how familiar you are with the shell script, but here goes:
mysql -u your_user -D your_database_name -e "show tables" -s
Lists all of your tables with the heading "Tables_in_your_database_name". The output from this channel is transmitted through the channel (the symbol | means "connected", as in the transmitted one) through the following command:
egrep "^Whatever_"
searches for any beginning lines (^ characters mean "creatures with") the word "Whatever_" and only prints them. Finally, we pass this list of "Whatever_ *" tables through the command:
xargs -I "@@" echo mysql -u your_user -D your_database_name -e "DROP TABLE @@"
which takes each row in the list of table names and inserts it instead of "@@" in the command
echo mysql -u your_user -D your_database_name -e "DROP TABLE @@"
So, if you have a bunch of tables named "Whatever_1", "Whatever_2", "Whatever_3", the generated commands are:
echo mysql -u your_user -D your_database_name -e "DROP TABLE Whatever_1" echo mysql -u your_user -D your_database_name -e "DROP TABLE Whatever_2" echo mysql -u your_user -D your_database_name -e "DROP TABLE Whatever_3"
To deduce the following:
mysql -u your_user -D your_database_name -e "DROP TABLE Whatever_1" mysql -u your_user -D your_database_name -e "DROP TABLE Whatever_2" mysql -u your_user -D your_database_name -e "DROP TABLE Whatever_3"
I hope that there were enough details, and Iβm not just beating someone on the head with too much information. Good luck, and be careful when using the DROP TABLE command!