bs4.Comment.extract

Comment.extract()

Destructively rips this element out of the tree.