'Delete all of the assets which use this course_key as an identifier.
Arguments:
course_key (CourseKey): course_identifier'

@contract(course_key='CourseKey', user_id='int|long')
def delete_all_asset_metadata(self, course_key, user_id):

    try:
        course_assets = self._find_course_assets(course_key)
        self.asset_collection.remove(course_assets.doc_id)
    except ItemNotFoundError:
        pass
