def submit_delete_problem_state_for_all_students(request, usage_key):
 modulestore().get_item(usage_key)
 task_type = 'delete_problem_state'
 task_class = delete_problem_state
 (task_input, task_key) = encode_problem_and_student_input(usage_key)
 return submit_task(request, task_type, task_class, usage_key.course_key, task_input, task_key)

def submit_delete_problem_state_for_all_students ( request , usage_key ) : modulestore ( ) . get_item ( usage_key ) task_type = 'delete_problem_state' task_class = delete_problem_state ( task_input , task_key ) = encode_problem_and_student_input ( usage_key ) return submit_task ( request , task_type , task_class , usage_key . course_key , task_input , task_key )
request to have state deleted for a problem as a background task .