remove (NotesMIMEEntity - JavaScript™)
Removes the current MIME entity and its children.
Defined in
NotesMIMEEntitySyntax
remove() : void
Examples
This button removes the MIME entity or all MIME entities (in the case of a multipart MIME entity) from the current document or all selected documents.// Do not automatically convert MIME to rich text
session.setConvertMIME(false);
var doc:NotesDocument = currentDocument.getDocument();
var mime:NotesMIMEEntity = doc.getMIMEEntity();
if (mime != null) {
mime.remove();
doc.save(true, true);
} else {
requestScope.status = "Not MIME";
}
// Restore conversion
session.setConvertMIME(true);