Delete a course problem
DELETE/api/courses/:id/problems/:pid
Deletes a problem within a course and its solution file. Course staff (faculty or TAs) or a system admin. The problem must belong to the course in the path. Refused while the problem is still attached to any assignment (problems are shared across assignments many-to-many); otherwise its submissions are removed first, then the record and file.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Problem deleted.
Problem is still linked to an assignment.
Not signed in.
Caller is not course staff (faculty or TA) or a system admin.
Problem not found in this course.
Server error.