Remove Method

Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++ Members: Show All Members: Filtered Members: Filtered Members: Filtered

C#
Visual Basic
Visual C++
Include Protected Members
Include Inherited Members

Berkeley DB .NET API Documentation
BaseDatabase..::.Remove Method
BaseDatabase Class See Also Send Feedback

Applications should never remove databases with open DB handles, or in the case of removing a file, when any database in the file has an open handle. For example, some architectures do not permit the removal of files with open system handles. On these architectures, attempts to remove databases currently in use by any thread of control in the system may fail.

Remove should not be called if the remove is intended to be transactionally safe; RemoveDB(String, Boolean) should be used instead.

# Overload List

| Name | Description
--- | --- | ---
| Remove(String) | Remove the underlying file represented by Filename, incidentally removing all of the databases it contained.
| Remove(String, DatabaseEnvironment) | Remove the underlying file represented by Filename, incidentally removing all of the databases it contained.
| Remove(String, String) | Remove the database specified by Filename and DatabaseName.
| Remove(String, String, DatabaseEnvironment) | Remove the database specified by Filename and DatabaseName.

# See Also

BaseDatabase Class
BaseDatabase Members
BerkeleyDB Namespace