How to Delete the Data from HBase Table

  • Sample code Segment

    Configuration config = HBaseConfiguration.create();HTable table=new HTable(config, "tablename");Delete delete=new Delete(rowname);

    delete.deleteColumn(columnfamily,columnname);

    delete.deleteFamily(columnfamily);

    table.delete(delete);

  • Command

    hbase< deleteall 'tablename', 'rowname'