deleteDatabase method

Future<bool> deleteDatabase (String path)

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

See: https://developer.android.com/reference/android/database/sqlite/SQLiteDatabase.html#deleteDatabase(java.io.File)

Implementation

static Future<bool> deleteDatabase(final String path) async {
  final Map<String, dynamic> request = <String, dynamic>{'path': path};
  return await _channel.invokeMethod('deleteDatabase', request);
}