remove (NotesDatabase - JavaScript™)
Permanently deletes a database.
Defined in
NotesDatabaseSyntax
remove() : void
Examples
This button removes a specified local database.var db:NotesDatabase = session.getDatabase(null, requestScope.query, false);
if (db == null) {
requestScope.status = "No such database: " + requestScope.query;
return;
}
try {
db.remove();
requestScope.status = "Removed database: " + requestScope.query;
} catch(e) {
requestScope.status = "Problem removing database: " + requestScope.query;
}