I haven't found anything similar to this. But I was wondering if it's possible to delete certain entries after a certain time?

For example: User fills in form and adds contact entry - after 2 weeks this entry gets removed automatically. This way the database won't fill up, and the overview will stay clean.

I was thinking a cronjob every 24h that checks the postdate and when the postdate is over 2 weeks it gets removed. However I'm not sure if this is possible with craft cms?

1 Answer 1


To only disable an entry, use this:enter image description here

If entries need to be deleted, you can create a custom plugin, where entries will be deleted when expired or when the postdate is older than 2 weeks..

  • It has to actually be deleted, so a custom plugin will probably be the solution. Thank you very much!
    – Geestig
    Commented Aug 4, 2020 at 14:26

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.