drop_all
Contents
Definition
Deletes the tables matching the given regular expression. Can be applied only to disabled tables. At first it locates the tables matching the regex, requests confirmation of the operation, and then deletes them permanently.
Usage
drop_all '<table_regex>'
Parameter | Description |
---|---|
table_regex |
A regular expression for searching tables |
Examples
hbase(main):013:0> drop_all 't.' t1 t3 Drop the above 2 tables (y/n)? y 0 tables successfully dropped 2 tables not dropped due to an exception: t1,t3 Took 4.2576 seconds hbase(main):014:0> disable_all 't.' t1 t3 Disable the above 2 tables (y/n)? y 2 tables successfully disabled Took 4.4517 seconds hbase(main):015:0> drop_all 't.' t1 t3 Drop the above 2 tables (y/n)? y 2 tables successfully dropped Took 3.0036 seconds