Amazon Simple Queue Service
Developer Guide

Tutorial: Purging Messages from an Amazon SQS Queue

If you don't want to delete an Amazon SQS queue but need to delete all the messages from it, you can purge the queue. The following example demonstrates purging a queue.

AWS Management Console

  1. Sign in to the Amazon SQS console.

  2. From the queue list, select a queue.

  3. From Queue Actions, select Purge Queue.

    The Purge Queues dialog box is displayed.

  4. Choose Yes, Purge Queue.

    All messages are purged from the queue.

    The Purge Queues confirmation dialog box is displayed.

  5. Choose OK.

On this page: