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());
}