Hello. I would like to make a trigger rule to delete forum post and its comments which are older than 2 months ago.
How could I do it?
Thanks.

Comments

Patroclas’s picture

You can use Rules module to schedule the delete action based on when the post was created.

You will need to look at creating a simple ruleset with an argument of 'content' and add a rule with the delete action. You will then need to create a triggered rule for when a forum post is created and an action to set a schedule for when the ruleset will be activated.

You could adapt this for your needs...

http://drupal.org/node/517674

Rules can be difficult at first, but once you get the concept they are very powerful.