The DocumentType.remove() method removes a document's doctype.
DocumentType.remove()
doctype
external void remove();