#NEWLINE# def delete( name , region = None , key = None , keyid = None , profile = None ) : #NEWLINE# #INDENT# '\n    Delete a CFN stack.\n\n    CLI example to delete a stack::\n\n        salt myminion boto_cfn.delete mystack region=us-east-1\n    ' #NEWLINE# conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) #NEWLINE# try : #NEWLINE# #INDENT# return conn . delete_stack ( name ) #NEWLINE# #UNINDENT# except BotoServerError as e : #NEWLINE# #INDENT# msg = 'Failed to create stack {0}.' . format ( name ) #NEWLINE# log . error ( msg ) #NEWLINE# log . debug ( e ) #NEWLINE# return str ( e )