'See xmodule.modulestore.__init__.ModuleStoreWrite.delete_course'

def delete_course(self, course_key, user_id):

    assert isinstance(course_key, CourseKey)
    store = self._get_modulestore_for_courselike(course_key)
    return store.delete_course(course_key, user_id)
