What would be a PHP command to erase all posts from category X from the last month?

I wish to run a cron job that would permanently erase all the posts belonging to some category from the past X days (say, week).
This is probably very basic, but I would appreciate some pointers.
Thanks.

Read more here: What would be a PHP command to erase all posts from category X from the last month?

Leave a Reply

Your email address will not be published. Required fields are marked *