NotesDatabase.ViewsintCount = 1
set db = s.CurrentDatabase
forall v in db.views
If v.EntryCount = 0 then
'View bzw. Folder ist leer
redim preserve vw_empty(1 to intCount)
vw_empty(intCount) = v.Name
End If
Next
For intCount = LBound(vw_empty) To ubound(vw_empty)
set vw = db.GetView(vw_empty(intCount))
Call vw.Remove
Next