deleteMessagesParams := &sqs.DeleteMessageBatchInput{
Entries: messagesToDelete, // array of type *sqs.DeleteMessageBatchRequestEntry
QueueUrl: aws.String(QUEUE_URL),
}
if resp , err := svc.DeleteMessageBatch(deleteMessagesParams); err != nil {
log.Println("Batch Delete Failed: ", err.Error())
}else{
log.Println("Batch Delete Successful: ", resp)
}
I'm using batch delete in SQS. When the batch deletion operation is successful, resp contains the MessageId's of messages for which deletion is successful.
In-case of error or when some messages are not deleted from the queue, will the err contain MessageId's for which batch Deletion failed??