You should know that for your safety this actions must be performed on the backend. There’s really no way to execute it automatically unless you use an external server to access your site’s API daily
You can expose an external endpoint using wix-http-functions that can be invoked by an external cron service. The endpoint code can then run whatever code you need.