def empty_asset_trashcan(course_locs):
 store = contentstore('trashcan')
 for course_loc in course_locs:
  thumbs = store.get_all_content_thumbnails_for_course(course_loc)
  for thumb in thumbs:
   print 'Deleting {0}...'.format(thumb)
   store.delete(thumb['_id'])
  (assets, __) = store.get_all_content_for_course(course_loc)
  for asset in assets:
   print 'Deleting {0}...'.format(asset)
   store.delete(asset['_id'])

def empty_asset_trashcan ( course_locs ) : store = contentstore ( 'trashcan' ) for course_loc in course_locs : thumbs = store . get_all_content_thumbnails_for_course ( course_loc ) for thumb in thumbs : print 'Deleting {0}...' . format ( thumb ) store . delete ( thumb [ '_id' ] ) ( assets , __ ) = store . get_all_content_for_course ( course_loc ) for asset in assets : print 'Deleting {0}...' . format ( asset ) store . delete ( asset [ '_id' ] )
this method will hard delete all assets from the trashcan .