Some help SMS find and remove

Hello
I have a simple script that erases all IMBOX sms, what I would like is to be able to delete only the ones with blank message field.

:foreach i in=[/tool sms inbox find] do={
:put [/tool sms inbox remove $i ]
}

This is why if we send sms to our customers mikrotik create blank messages into inbox for each one we send.

some help?

Hi, I have the same problem too.
Sms sent are holded in INBOX dir.

Is it possible to not hold sent messages in INBOX dir ?

Any updates?

#Delete SMS in Inbox
:foreach i in=[/tool sms inbox find] do={
/tool sms inbox remove $i
}

If you need remove only without text messages, you can find message=“”

#Delete SMS in Inbox
:foreach i in=[/tool sms inbox find message=“”] do={
/tool sms inbox remove $i
}

Or without loop:

/ tool sms inbox remove [ find where message="" ];