BeautifulSoup Удалить элемент

# delete scripts using beautifulsoup

for script in soup.select('script'):
  script.decompose()
Mhmd