Example usage for android.database.sqlite SQLiteDatabase deleteDatabase

List of usage examples for android.database.sqlite SQLiteDatabase deleteDatabase

Introduction

In this page you can find the example usage for android.database.sqlite SQLiteDatabase deleteDatabase.

Prototype

public static boolean deleteDatabase(@NonNull File file) 

Source Link

Document

Deletes a database including its journal file and other auxiliary files that may have been created by the database engine.

Usage

From source file:com.panoskrt.dbadapter.DBAdapter.java

@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
public void deleteDB() {
    File oldDB = new File(dbPath + dbName);
    SQLiteDatabase.releaseMemory();/*from  w w w  .  j  ava2 s  . co m*/
    SQLiteDatabase.deleteDatabase(oldDB);
}