deleteDatabase method
Deletes the specified database
Implementation
Future<dynamic> deleteDatabase(String? name) {
if (name == null) {
return _raiseException(WiltException.deleteDbNoName);
}
// The first char of the URL should be a slash. //
var url = name;
if (!url.startsWith('/')) {
url = '/$url';
}
// Null the current database if we have deleted it
if (name == db) {
db = null;
}
return _httpRequest(deleteDatabasee, url);
}