bs4.NavigableString.extract

NavigableString.extract()

Destructively rips this element out of the tree.