Rtautoclear seems not to work

rtautoclear=yes,but when a gateway break the connection with the Asterisk Server,the ipaddr in the sip_buddies at MySql does not clear.

Thanks for your help