Deleting JSON Tables

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

Example

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

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.