1

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.

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
Andy
  • 2,138
  • 3
  • 14
  • 14

3 Answers3

1
DROP DATABASE mydatabase CASCADE;
bagi
  • 627
  • 1
  • 8
  • 20
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
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.