This topic describes how to delete HPE Ezmeral Data Fabric Database JSON tables using either programmatic APIs or dbshell.
To delete a table in the Java OJAI client, call an Admin object's
deleteTable() method and pass, 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)) {
admin.deleteTable(tablePath);
}
}
}
Connection.deleteStore()
method:connection.deleteStore(table_path)
then((deleteResponse) => {
// Process deleteReponse
...
});Connection.delete_store()
method:rc = connection.delete_store(store_path=table_path)
connection.DeleteStore(string
storePath)
method:connection.DeleteStore(string storePath);
connection.DeleteStore()
function:err := connection.DeleteStore("/store_path")You must have both the readAce and writeAce permissions
on the volumes where the JSON tables are located to delete it. For information about how to set
permissions on volumes, see Setting Whole Volume ACEs.