delay a script by 4 seconds.

I want to delay a script by 4 seconds.
/ ip firewall connection remove [find]

How should I set this?

Thanks for your help.

:delay 4000ms;

But I feel there is more to your question than a simple delay

Thanks for your reply

The problem is that I don’t know where to place the delay in the script.

Something like that or am I wrong
/ ip firewall connection remove [find] :delay 4000ms;

You want a delay after each entry from firewall is removed? Or after all entries are removed?

I want to run a script and pause the last line for 4 seconds

ip route disable [find dst-address=0.0.0.0/0 gateway=xx.xx.xx.xx]
:log error “ISP2 is down”
Here must come the pause for this below command

/ip firewall connection remove [find]

Thanks for your effort.

Ip route disable [find dst-address=0.0.0.0/0 gateway=xx.xx.xx.xx]
:log error “ISP2 is down”
:delay 4000 ms
/ip firewall connection remove [find

Thanks for your help. I appreciate this.

Greatings