Community discussions

 
User avatar
machack
newbie
Topic Author
Posts: 47
Joined: Fri Jun 01, 2007 9:35 pm
Location: San Luis Argentina
Contact:

Some help SMS find and remove

Sat Sep 09, 2017 6:04 pm

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?
Cesar Javier Robles
www.WindNet.com.ar
MTCNA - MTCTCE - MTCRE - MTCWE
 
ryz
just joined
Posts: 13
Joined: Sun May 27, 2007 5:10 pm

Re: Some help SMS find and remove

Mon Oct 02, 2017 11:17 am

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 ?
 
User avatar
andersonid
just joined
Posts: 3
Joined: Sat Sep 30, 2017 9:34 pm
Location: Sao Paulo / Brazil
Contact:

Re: Some help SMS find and remove

Sun Dec 17, 2017 8:14 pm

Any updates?
 
100mux
just joined
Posts: 1
Joined: Thu May 24, 2007 3:29 pm

Re: Some help SMS find and remove

Sun Aug 12, 2018 1:17 pm

#Delete SMS in Inbox
:foreach i in=[/tool sms inbox find] do={
/tool sms inbox remove $i
}
 
baronkis
just joined
Posts: 3
Joined: Thu Feb 16, 2012 10:58 pm
Location: Vilnius
Contact:

Re: Some help SMS find and remove  [SOLVED]

Sun Apr 07, 2019 7:21 pm

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
}
 
User avatar
eworm
Member
Member
Posts: 403
Joined: Wed Oct 22, 2014 9:23 am
Location: Oberhausen, Germany
Contact:

Re: Some help SMS find and remove

Tue Apr 16, 2019 12:45 pm

Or without loop:
/ tool sms inbox remove [ find where message="" ];
Manage RouterOS scripts and extend your devices' functionality: RouterOS Scripts

Who is online

Users browsing this forum: No registered users and 20 guests