#NEWLINE# @ staticmethod #NEWLINE# def _cleanUpExternalStore( url ) : #NEWLINE# #INDENT# from toil.jobStores.aws.jobStore import AWSJobStore #NEWLINE# try : #NEWLINE# #INDENT# ( bucket , _ ) = AWSJobStore . _extractKeyInfoFromUrl ( urlparse . urlparse ( _ ) ) #NEWLINE# #UNINDENT# except boto . exception . S3ResponseError as ex : #NEWLINE# #INDENT# assert ( ex . error_code == 404 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# s3 = boto . connect_s3 ( ) #NEWLINE# for key in bucket . list ( ) : #NEWLINE# #INDENT# key . delete ( ) #NEWLINE# #UNINDENT# s3 . delete_bucket ( bucket )