There's a bunch of test databases that I have and I'd like a way to drop all of them. They all have long random strings as names, so it kind of sucks to have to go through each one and delete, especially since you can't copy/paste.
Asked
Active
Viewed 2,326 times
3 Answers
0
SHOW SCHEMAS;
Will list all databases. See: SHOW DATABASES - Amazon Athena

John Rotenstein
- 241,921
- 22
- 380
- 470

RaGe
- 22,696
- 11
- 72
- 104
-
Thanks, but is there a way to drop all of them? – Andy Apr 12 '18 at 14:15
-
1well at least now you have copy paste :) – RaGe Apr 12 '18 at 14:56
-
hehe I suppose :) – Andy Apr 12 '18 at 16:29
0
In Athena homepage, navigate to the menu on the left. Go to 'Data sources' tab. Click on the name of the Data source that contains the database you want to delete. Click on the name of the database you want to delete. Click 'Delete' button on the upper right direction. Follow the prompt.