You can have as many queues with as many messages as you like in the Amazon SQS system. A queue can be empty if you haven't sent any messages to it or if you have deleted all the messages from it.
You assign a name to each of your queues (for more information, see Queue URLs). You can get a list of all your queues or a subset of your queues that share the same initial characters in their names (for example, you could get a list of all your queues whose names start with "T3").
You can delete a queue at any time, whether it is empty or not. You should be aware that queues have a time limit; SQS deletes messages that have been in the queue for more than 4 days.
We reserve the right to delete a queue without notification if one of the following actions
hasn't been performed on it for 30 consecutive days:
SendMessage, ReceiveMessage,
DeleteMessage, GetQueueAttributes, SetQueueAttributes, AddPermission, and RemovePermission.
![]() | Important |
|---|---|
It is a violation of the intended use of Amazon SQS if you repeatedly create queues and then leave them inactive. |
The following table lists the API actions to use.
| To do this... | Use this action |
|---|---|
|
Create a queue | |
|
List your queues | |
|
Delete a queue |