Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Cron to delete expired links

Quote Reply
Cron to delete expired links
Happy New Year!

I would like to be able to delete expired links by cron after they have been expired for 30 days.

Anyone have a script that does this?
Quote Reply
Re: [rascal] Cron to delete expired links In reply to
Just call admin.cgi with the purge command:
admin.cgi 'purge_days=30&do=page&page=tools_expired_purge.html&expired_links_purge=1'

Just note that this command will probably change in the future, because it currently doesn't prompt for confirmation.

Adrian
Quote Reply
Re: [brewt] Cron to delete expired links In reply to
Thanks Brewt, hopefully you will get the command fixed soon.