I created a rule to be fired when "Cron maintenance tasks are performed".

Now I need an action to check delete all nodes of the content type: "Question" that have the field "Delete" set to "yes"

How can I do this?

1 Answer 1


you could use hook_cron_queue_info to create a task that sits in a queue and happens on a timer. This would account for the potentially long duration of the task you mention.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.