Skip to main content

Remove the authenticated user's recommendation on a study guide

DELETE 

/study-guides/:study_guide_id/recommendations

Hard-deletes the (viewer, guide) row in study_guide_recommendations. Authorization mirrors the POST side: viewer must currently hold instructor/TA in the guide's course (a former TA who lost the role can't manage their old recommendations -- the policy is "current elevated-role users only").

404 covers BOTH "guide missing/deleted" and "viewer never recommended this guide" -- by design, since the desired end state is "no recommendation from viewer", which is reached in either case from the caller's point of view.

Request

Responses

Recommendation removed; no response body.