@step('I remove "([^"]+)" transcripts id from store')
def remove_transcripts_from_store(_step, subs_id):
 filename = 'subs_{0}.srt.sjson'.format(subs_id.strip())
 content_location = StaticContent.compute_location(world.scenario_dict['COURSE'].id, filename)
 try:
  content = contentstore().find(content_location)
  contentstore().delete(content.location)
  print 'Transcript file was removed from store.'
 except NotFoundError:
  print 'Transcript file was NOT found and not removed.'

@ step ( 'I remove "([^"]+)" transcripts id from store' ) def remove_transcripts_from_store ( _step , subs_id ) : filename = 'subs_{0}.srt.sjson' . format ( subs_id . strip ( ) ) content_location = StaticContent . compute_location ( world . scenario_dict [ 'COURSE' ] . id , filename ) try : content = contentstore ( ) . find ( content_location ) contentstore ( ) . delete ( content . location ) print 'Transcript file was removed from store.' except NotFoundError : print 'Transcript file was NOT found and not removed.'
remove from store .