Deleting a DatabaseWhen 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 ctdbDeleteDatabase(). /* delete MyDatabase from current session */ if (ctdbDeleteDatabase(hSession, “MyDatabase”) != CTDBRET_OK) {
printf(“Delete database failed\n”); } |
|||