How to delete/truncate tables from Hadoop-Hive?

Amol Fasale picture Amol Fasale · Feb 28, 2013 · Viewed 123.8k times · Source

Please tell me how to delete table from hive and also tell from where i can get more information about hive queries.

Answer

Balaswamy Vaddeman picture Balaswamy Vaddeman · Feb 28, 2013

You can use drop command to delete meta data and actual data from HDFS.

And just to delete data and keep the table structure, use truncate command.

For further help regarding hive ql, check language manual of hive.