Working with HDFS here? I have tried this at my end and this worked perfectly for me.
- To delete the desired database without using Hive terminal, you have to go to the hive database location in hdfs, you will find your database in warehouse directory.
- My directory is /usr/hive/warehouse/userme.db
Now, open another terminal for flexibility.
- To remove this particular database(for me- userme.db) copy the directory given above and paste on the terminal after typing remove command.
$ hdfs dfs -rm -r /usr/hive/warehouse/userme.db
Now your database is deleted without using Hive terminal.
For more information regarding the same, refer the following link: