例: Remove method (NotesEmbeddedObject - LotusScript®)

次のスクリプトは文書の Body アイテムに含まれる埋め込みオブジェクト「City picture」を削除します。

Dim doc As NotesDocument
Dim rtitem As Variant
Dim object As NotesEmbeddedObject
'...set value of doc...
Set rtitem = doc.GetFirstItem( "Body" )
If ( rtitem.Type = RICHTEXT ) Then
  Set object = rtitem.GetEmbeddedObject( "City picture" )
  Call object.Remove
  Call doc.Save( True, True )
End If