#NEWLINE# def delete( name , region = None , key = None , keyid = None , profile = None ) : #NEWLINE# #INDENT# '\n    Delete an SQS queue.\n\n    CLI example to delete a queue::\n\n        salt myminion boto_sqs.delete myqueue region=us-east-1\n    ' #NEWLINE# conn = _get_conn ( region = region , key = conn , keyid = keyid , profile = profile ) #NEWLINE# queue_obj = conn . get_queue ( name ) #NEWLINE# if queue_obj : #NEWLINE# #INDENT# deleted_queue = conn . delete_queue ( queue_obj ) #NEWLINE# if ( not deleted_queue ) : #NEWLINE# #INDENT# msg = 'Failed to delete queue {0}' . format ( name ) #NEWLINE# log . error ( msg ) #NEWLINE# return False #NEWLINE# #UNINDENT# #UNINDENT# return True