SQS Delete Message

Deletes a message from SQS queue

Overview

This node deletes a message from an AWS SQS (Simple Queue Service) queue. It is useful in workflows where you need to remove processed messages from the queue to prevent reprocessing. For example, after successfully handling a message, this node can be used to delete it from the queue to maintain queue hygiene and ensure messages are not processed multiple times.

Use Case Examples

  1. Deleting a message from an SQS queue after processing it in a workflow.
  2. Automating cleanup of messages in an SQS queue based on certain conditions.

Properties

Name Meaning
Queue URL The URL of the SQS queue from which the message will be deleted.
Receipt Handle The receipt handle of the message to delete, which is a unique identifier for the message in the queue.

Output

JSON

  • deleted - Boolean indicating if the message was successfully deleted.
  • success - Boolean indicating the success status of the delete operation.
  • error - Error message if the delete operation failed.

Dependencies

  • AWS SDK for JavaScript (v3) - specifically @aws-sdk/client-sqs

Troubleshooting

  • Ensure the AWS credentials provided have permissions to delete messages from the specified SQS queue.
  • Verify that the Queue URL and Receipt Handle are correct and correspond to an existing message in the queue.
  • Common error messages include permission denied or invalid receipt handle, which indicate issues with credentials or message identification respectively.

Links

Discussion