def METHOD_NAME(step, group1):
    link = world.browser.find_element_by_partial_link_text(group1)
    parent = link.parent
    icon = parent.find_element_by_css_selector('a.delete-vocabulary')
    assert icon, "Unable to find a delete icon for %s" % group1
    icon.click()