Forrest logo
back to the mmcli tool

mmcli:tldr:d4844

mmcli: Delete a message from the modem, specifying its path.
$ sudo mmcli --modem=${modem} --messaging-delete-sms=${path-to-message_file}
try on your machine

This command is used to delete an SMS message from a specific modem in a Linux-based operating system using the ModemManager command-line interface (mmcli). Here is the breakdown of the command:

  • sudo: It is a command used in Linux to execute a command with administrative (superuser) privileges. It ensures that the subsequent command is run with the necessary permissions.

  • mmcli: It is the command-line interface for ModemManager, which provides various functionalities for managing mobile broadband modems.

  • --modem=${modem}: It specifies the modem on which the operation should be performed. You need to replace ${modem} with the identifier or path of the specific modem you want to target. For example, it could be something like --modem=/org/freedesktop/ModemManager1/Modem/0.

  • --messaging-delete-sms=${path-to-message_file}: It indicates the command to delete an SMS message. You should replace ${path-to-message_file} with the actual file path (location) of the message you want to delete. The path can be an absolute or relative path to the file.

Overall, this command is used to delete an SMS message from a specified modem using the ModemManager command-line interface in a Linux environment.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mmcli tool