Overview
The customer is experiencing an issue with deleting queued SMS messages sent from specific shortcodes or would like to clear the AMS completely. The customer wanted to delete these queues to prevent the SMS messages from being retried.
Solution
To delete individual messages from the queue, use the command tp_qcli -d -i=. The message ID can be obtained by running the command tp_qcli -s -o=11001 where 11001 is the originator shortcode,please replace as necessary , which shows all the messages for the originator in various queues.
Here are the steps:
- Run the command tp_qcli -s -o=11001 to view all the messages for the originator in various queues.
- Identify the message ID of the message you want to delete.
- Run the command tp_qcli -d -i=<message_id> to delete the specific message from the queue.
For example, to delete the message belonging to AMS 1 with message ID 12345678, you would use the following command: tp_qcli -d -i=12345678. The output of this command would be: A message with id 12345678 deleted.
Please note that there is no direct way to delete an entire queue, only individual messages can be deleted.
Summary
While there is no direct way to delete an entire queue of SMS messages from specific shortcodes, individual messages can be deleted using specific commands. This process involves identifying the message ID and using it to delete the specific message from the queue.
FAQ
-
Can I delete an entire queue of SMS messages?
No, there is no direct way to delete an entire queue. Only individual messages can be deleted. -
How can I identify the message ID?
You can identify the message ID by running the command tp_qcli -s -o=11001, which shows all the messages for the originator in various queues. -
What command do I use to delete a specific message from the queue?
You can delete a specific message from the queue using the command tp_qcli -d -i=.