Added API endpoint for removing courses.