def delete_message(queue, region, receipthandle, opts=None, user=None):
 queues = list_queues(region, opts, user)
 url_map = _parse_queue_list(queues)
 if (queue not in url_map):
  log.info('"{0}" queue does not exist.'.format(queue))
  return False
 out = _run_aws('delete-message', region, opts, user, receipthandle=receipthandle, queue=url_map[queue])
 return True

def delete_message ( queue , region , receipthandle , opts = None , user = None ) : queues = list_queues ( region , opts , user ) url_map = _parse_queue_list ( queues ) if ( queue not in url_map ) : log . info ( '"{0}" queue does not exist.' . format ( queue ) ) return False out = _run_aws ( 'delete-message' , region , opts , user , receipthandle = receipthandle , queue = url_map [ queue ] ) return True
delete one or more messages from a queue in a region queue the name of the queue to delete messages from region region where sqs queues exists receipthandle the receipthandle of the message to delete .