While Not (doc_child Is Nothing)
Call doc_child.RemovePermanently(True)
Set doc_child = dc_child.getNextDocument(doc_child)
Wend
Da beisst sich die Karte auch in den Schwanz: Erst doc_Child löschen und dann doc_Child an GetNextDocument übergeben - das ist doch jetzt Nothing.
Du musst mit einem temporären NotesDocument arbeiten:
While Not ...
Set doc_Remove = doc_Child
Set doc_Child = .... GetNextDocument
Call doc_Remove.Remove....
HTH,
Bernhard