Deleting JSON Tables with the MapR-DB OJAI Java API Library

Delete a JSON table by calling an Admin object's deleteTable() method, passing as an argument the path of the table to delete.


  public void deleteTable(String tablePath) throws DBException {
    try (Admin admin = MapRDB.newAdmin()) {
      if (admin.tableExists(tablePath)) {

Permissions Required

The readAce and writeAce permissions on the volumes where the JSON tables are located. For information about how to set permissions on volumes, see Setting/Modifying Whole Volume ACEs.