bs4.Declaration.extract

Declaration.extract()

Destructively rips this element out of the tree.