Deleting Objects and Folders

To delete an object in the BI Beans Catalog, you call the unbind method of the context that contains the object. To delete a folder from the Catalog, you call the destroySubcontext method of the next folder up.

Example: Deleting an object

The following code deletes a graph that is named "MyGraph."


// cxtMyFolder is the PersistenceManager or the MDFolder // that contains the graph try{   cxtMyFolder.unbind("MyGraph"); } catch (NamingException ne){    ne.printStackTrace(); }

Example: Deleting a folder

The following code deletes a folder that is named MyGraphsFolder.


// ctxMyFolder is the PersistenceManager or the MDFolder // that contains "MyGraphsFolder" try{   ctxMyFolder.destroySubcontext("MyGraphsFolder"); } catch (NamingException ne){   ne.printStackTrace(); }