'Click on the delete button for the given XBlock'

def click_delete_button(self, xblock_id, confirm=True):

    self._action_btn_for_xblock_id(xblock_id, 'delete').click()
    if confirm:
        confirm_prompt(self)
        self.wait_for_ajax()
