bs4.Doctype.extract

Doctype.extract()

Destructively rips this element out of the tree.