'As staff, clicks the "delete student state" button,
deleting the student user\'s state for the problem.'

def _student_admin_action_for_problem(self, action_button, has_cancellable_alert=False):

    self.instructor_dashboard_page.visit()
    student_admin_section = self.instructor_dashboard_page.select_student_admin(StudentSpecificAdmin)
    student_admin_section.set_student_email_or_username(self.USERNAME)
    student_admin_section.set_problem_location(self.problem1.locator)
    getattr(student_admin_section, action_button).click()
    if has_cancellable_alert:
        alert = get_modal_alert(student_admin_section.browser)
        alert.accept()
    alert = get_modal_alert(student_admin_section.browser)
    alert.dismiss()
    return student_admin_section
