void RemoveAttachment( String sName )
String sName
The name of the attachment to remove.
This method removes an attachment from the DataObject. It is not an error to remove an attachment that does not exist.
The DataObject class enables you to add attachments to a DataObject. This enables you to associate additional information about the data in a DataObject with the DataObject itself. The DataObject does not use your attachments. Note that attachments exist only in memory. They are not stored when you store the DataObject.
declare DataObject dobj = DataObject.Create( "Example" ); x = rannor( 1:100 ); dobj.AddVar( "X", x ); dobj.AddAttachedDouble( "X Mean", x[:] ); x = rannor( 1:100 ); dobj.SetVarData( "X", x ); /* Mean is out of date */ dobj.RemoveAttachment( "X Mean" );