June 2001
Intermediate to advanced
688 pages
19h 18m
English
import com.sleepycat.db.*; import java.io.FileNotFoundException; public void remove(String db_home, int flags) throws DbException, FileNotFoundException;
The DbEnv.remove method destroys a Berkeley DB environment, if it is not currently in use. The environment regions, including any backing files, are removed. Any log or database files and the environment directory are not removed.
The db_home argument to DbEnv.remove is described in “Berkeley DB File Naming.”
If there are processes that have called DbEnv.open without calling DbEnv.close (that is, there are processes currently using the environment), DbEnv.remove will fail without further action, unless the DB_FORCE flag is set, in which case DbEnv.remove will attempt ...