Db.remove |
![]() ![]() |
import com.sleepycat.db.*;public void remove(String name, String subname, int flags) throws DbException;
The Db.remove interface removes the database (or subdatabase) represented by the name and subname combination.
If no subdatabase is specified, the physical file represented by name is removed, incidentally removing all subdatabases that it contained.
No reference count of database use is maintained by Berkeley DB. Applications should not remove databases that are currently in use.
The flags parameter is currently unused, and must be set to 0.
Once Db.remove has been called, regardless of its return, the Db handle may not be accessed again.
The Db.remove method throws an exception that encapsulates a non-zero error value on failure.
In addition, the Db.remove method may fail and throw an exception for errors specified for other Berkeley DB and C library or system methods.
![]() ![]() |