Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

Deleting a Database

When you delete a database from a session, the database information is removed from the session dictionary and the database dictionary file is deleted. The delete database operation cannot be reversed and the database dictionary data will be lost. Delete a database from a session by calling CTSession::DeleteDatabase() method.

// delete MyDatabase from current session

try

{
ASession.DeleteDatabase("MyDatabase");

}

catch (CTException &err)

{

printf("Delete database failed with error %d\n", err.GetErrorCode());

}

TOCIndex