Click or drag to resize

DatabaseFactoryDeleteDatabase Method

Deletes underlying data for a given database given the database name and directory (from Directory). Useful for deleting a database that cannot be otherwise opened (e.g. encryption key forgotten) but Delete is preferred. A null directory will check the library default directory for the platform.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0033
Syntax
C#
public static void DeleteDatabase(
	string name,
	string directory
)

Parameters

name
Type: SystemString
The name of the database to delete
directory
Type: SystemString
The directory where the database is located
Exceptions
ExceptionCondition
ArgumentNullExceptionname is null
ArgumentExceptionname contains invalid characters
LiteCoreExceptionAn error occurred during LiteCore Interop
See Also