1 Answers
SQS doesn’t automatically delete a message once you read it, in case you message isn’t read or the application fails. Instead SQS expects you to send a new message acknowledging that you have read the message and it should now be deleted. In the console select the message and use the delete button. See https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-using-receive-delete-message.html.
Your client code you can run using CLIENT_ACKNOWLEDGE in which you have to explicitly acknowledge the message or AUTO_ACKNOWLEDGE in which the client reading the message automatically deletes it. https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/getting-started.html