This script allows you to read SMS, delete individual ones, or remove all at once from the command line.
It works with the Alcatel IK40V Link Key USB dongle.
- Read SMS messages per contact.
- Delete individual messages.
- Delete all SMS messages from all contacts.
- Quick exit with
qfrom any menu.
- Python 3
requestslibrary (install withapt install python3-requests)
Download the Python script:
wget https://raw.githubusercontent.com/anthonyborriello/alcatel_ik40v_script/main/alcatel_read_delete_sms.pyRun the script with:
python3 alcatel_read_delete_sms.pyYou will see a menu like:
=== Menu ===
1. Read and delete single messages
2. Delete ALL messages from ALL contacts
Choose an option (or type q to 'exit'):
- After selecting option
1(Read and delete single messages), the script lists messages per contact. - To delete a single message, enter it in the following format:
ContactId:SMSId
For example, to delete SMS ID 65539 from contact ID 2:
2:65539
- Press Enter without typing anything to go back to the main menu.
- Press q at any point to quit the script.
- Select option
2and typedeleteallto confirm deletion of all SMS messages from all contacts.
Modify the URL variable in the script if your device has a different API endpoint.
In addition to the SMS Read & Delete script, there are scripts to monitor your Alcatel device network and rapidly check if you have new messages.
Download them with:
wget https://raw.githubusercontent.com/anthonyborriello/alcatel_ik40v_script/main/alcatel_network_check.pywget https://raw.githubusercontent.com/anthonyborriello/alcatel_ik40v_script/main/alcatel_sms_checker.pyFor sending SMS using the Alcatel IK40V modem, see IK40V_SMS.
Special acknowledgment to rmappleby, who was fundamental for this script: thanks to his guidance, I understood where to look in the API to develop this tool.
This project is licensed under the MIT License.
Feel free to submit issues or pull requests to improve this project.
Antonio Borriello antonioborriello.wordpress.com