DeleteCourse API plus lint tidy-up