Wie rufst du das denn auf?
Zeig mal ein bisschen Code.
Edit: Es tut also was es soll: Beispiel aus dem Notes Designer (war nicht schwer zu finden ;) )
Examples: DeleteDocument method
This script closes the current document and marks it for deletion. If the document is in Edit mode, however, the script does nothing.
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
If Not ( uidoc.EditMode ) Then
Call uidoc.DeleteDocument
End If
End Sub
[b]
Usage: The document is not actually deleted from the database until the user refreshes the view or closes the database, and chooses to delete the marked document.[/b]
If the current document is already marked for deletion, this method closes the document, leaving the deletion mark in place.
End If