Bagikan melalui


Context.DeleteDatabase(String) Method

Definition

Delete an existing private SQLiteDatabase associated with this Context's application package.

[Android.Runtime.Register("deleteDatabase", "(Ljava/lang/String;)Z", "GetDeleteDatabase_Ljava_lang_String_Handler")]
public abstract bool DeleteDatabase (string? name);
[<Android.Runtime.Register("deleteDatabase", "(Ljava/lang/String;)Z", "GetDeleteDatabase_Ljava_lang_String_Handler")>]
abstract member DeleteDatabase : string -> bool

Parameters

name
String

The name (unique in the application package) of the database.

Returns

true if the database was successfully deleted; else false.

Attributes

Remarks

Delete an existing private SQLiteDatabase associated with this Context's application package.

Java documentation for android.content.Context.deleteDatabase(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also

  • <xref:Android.Content.Context.OpenOrCreateDatabase(System.String%2c+Android.Content.FileCreationMode%2c+Android.Content.FileCreationMode)>