def remove_course_references(course_key):
_validate_course_key(course_key)<EOL>data.delete_course_references(course_key)<EOL>
Removes course references from application state
See edx-platform/lms/djangoapps/courseware/management/commands/delete_course_references.py