Click or drag to resize

DatabaseDelete Method (String, String)

Deletes a database of the given name in the given directory. If a null directory is passed then the default directory is searched.

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

Parameters

name
Type: SystemString
The database name
directory
Type: SystemString
The directory where the database is located, or null to check the default directory
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if name is null
CouchbaseExceptionThrown if an error condition is returned from LiteCore
See Also