I've followed this thread https://groups.drupal.org/node/240678#comment-782543, but that's based on a date field and it has a different scenario.

My idea is: When a new content is created, after 30 days will be automatically unpublished.

How can I achieve this without using additional date fields?

1 Answer 1


Instead use Auto Expire module, Using this module you can set the node to unpublish after 30 days.

enter image description here

For your case set zero in purge field, otherwise it will automatically delete from database.

This module allows site administrators to set expiration times for content types.

End users creating content that has auto expiry set cannot control the expiry time. They could be allowed to renew the content for one or more cycles.

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.