Deprecating old IPv6 prefix when removed or replaced RFC6204

I’m running a script every 20 minutes for fix this problem but not sure if it is working.
thanks ranpha
fyi.

:log info "IPv6 Check Start";
# run this script 2 hour at most for remove any address old;
# till MikroTik fix [ipv6 fir add timeout] bug
:do {
  :ipv6 fir addr remove [/ipv6 fir addr find timeout=0s and list=oldV6]
} on-error={}

# poolname is the name of the IPv6 pool that contained the prefix you got from the ISP.
:local poolname "pool-ipv6";
# intname is the interface where the pool is advertised.
:local intname "bridge1";

:global oldV6;
:local newV6;
:set newV6 [/ipv6 pool get $poolname prefix];

:if ([ :typeof $oldV6 ] = "nothing") do={
 :set oldV6 $newV6
}

:if ($newV6 != $oldV6) do={
 :log info "Mismatch -- killing old prefix";
 :log info "Current -- $newV6";
 :log info "Previous -- $oldV6";
 :do {
  :ipv6 fir add add list=oldV6 address=$oldV6 timeout=2h;
 } on-error={}
 :set oldV6 $newV6;
}

:do {
  :ipv6 nd prefix remove [/ipv6 nd prefix find (!dynamic)];
} on-error={}
:foreach oldipv6s in=[/ipv6 fir add find list=oldV6] do={
  :do {
    :ipv6 nd prefix add autonomous=yes disabled=no interface=$intname on-link=yes preferred-lifetime=0s prefix=[/ipv6 fir add get $oldipv6s address] valid-lifetime=0s;
  } on-error={}
}

:log info "IPv6 Check Stop";