remove (NotesView - JavaScript)

Permanently removes a view from a database.

Defined in

NotesView

Syntax

remove() : void

Usage

The removed view may still appear in the user interface until the user refreshes the view list.

A subsequent call to a method of the view, or a method of a navigator based on the view, causes an exception.

Examples

This button removes a view from the current database.
var v:NotesView = database.getView("dates");
if (v != null) {
	requestScope.status = "Removing view " + v.getName();
	v.remove();	
}