elem_found = soup.find(tag_elem) if elem_found: elem_found.decompose() #Removes found tag element from soup