def _clear_assets(location):
 store = contentstore()
 (assets, __) = store.get_all_content_for_course(location.course_key)
 for asset in assets:
  asset_location = asset['asset_key']
  del_cached_content(asset_location)
  store.delete(asset_location)

def _clear_assets ( location ) : store = contentstore ( ) ( assets , __ ) = store . get_all_content_for_course ( location . course_key ) for asset in assets : asset_location = asset [ 'asset_key' ] del_cached_content ( asset_location ) store . delete ( asset_location )
clear all assets for location .