'Clicks the delete button, then cancels at the confirmation prompt if cancel is True.'

def delete(self, cancel=False):

    click_css(self, self._bounded_selector('.delete-button'), require_notification=False)
    confirm_prompt(self, cancel)
