Title: Auto delete logic
Last modified: April 28, 2021

---

# Auto delete logic

 *  Resolved [titsmaker](https://wordpress.org/support/users/titsmaker/)
 * (@titsmaker)
 * [5 years ago](https://wordpress.org/support/topic/auto-delete-logic/)
 * Hi, do I understand correctly that now auto delete is run at set interval of 
   time and when it’s run everything is deleted?
    This way you can find yourself
   in a situation when there are no logs even for recent emails. I suppose it would
   be nice to have an additional option to keep recent X days/weeks of log when 
   deleting old entries.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [JWardee](https://wordpress.org/support/users/wardee/)
 * (@wardee)
 * [5 years ago](https://wordpress.org/support/topic/auto-delete-logic/#post-14376460)
 * Hey,
 * Yes that’s correct, when the interval expires all the messages are deleted. I
   had an idea a while ago to allow messages to be stared which would stop them 
   being deleted. If this idea interests you feel free to flesh out the idea further
   on the [GitHub repo](https://github.com/JWardee/wp-mail-catcher/issues/27)
 *  [Jim](https://wordpress.org/support/users/jwmc/)
 * (@jwmc)
 * [5 years ago](https://wordpress.org/support/topic/auto-delete-logic/#post-14390278)
 * Hi, thanks for the handy plugin!
 * I think the OP was referring to a wish I also had, to delete messages when they
   reach a certain age. Otherwise, if you have it set for monthly, and the monthly
   deletion just occurred, I can’t see messages from yesterday.
 * So you could keep the intervals (daily, weekly, monthly etc.) but add an option
   to only delete messages that are older than a certain time.
 * By the way, that interval drop down seems a little messed up. For example, it
   has “Once Monthly” and “Once Every Month”, which I assume are the same thing.
   Similar for other intervals. “Once Daily” simply is in the list twice. And I 
   have a strange entry “Autoptimize CriticalCSS”.
    -  This reply was modified 5 years ago by [Jim](https://wordpress.org/support/users/jwmc/).
      Reason: added image
 *  Thread Starter [titsmaker](https://wordpress.org/support/users/titsmaker/)
 * (@titsmaker)
 * [5 years ago](https://wordpress.org/support/topic/auto-delete-logic/#post-14390324)
 * Yep, that’s what I meant.
 *  Plugin Author [JWardee](https://wordpress.org/support/users/wardee/)
 * (@wardee)
 * [5 years ago](https://wordpress.org/support/topic/auto-delete-logic/#post-14393780)
 * Hey guys,
 * No worries, I understand what you both mean. I’ve created this as an issue on
   GitHub – feel free to chime in there with anything extra regarding this [https://github.com/JWardee/wp-mail-catcher/issues/101](https://github.com/JWardee/wp-mail-catcher/issues/101)
 * [@jwmc](https://wordpress.org/support/users/jwmc/) that dropdown is actually 
   correct it uses a hook that other plugins use to add additional timescales in
 *  Plugin Author [JWardee](https://wordpress.org/support/users/wardee/)
 * (@wardee)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/auto-delete-logic/#post-14574330)
 * Just released v1.5.0 which comes with this – let me know if you have any issues
   🙂
 *  Thread Starter [titsmaker](https://wordpress.org/support/users/titsmaker/)
 * (@titsmaker)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/auto-delete-logic/#post-14574519)
 * Thanks a lot for implementing the feature. That will make the plugin much more
   convinient to use. Great job!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Auto delete logic’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-catcher/assets/icon.svg?rev=2221293)
 * [Mail logging - WP Mail Catcher](https://wordpress.org/plugins/wp-mail-catcher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-catcher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-catcher/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-catcher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-catcher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-catcher/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [titsmaker](https://wordpress.org/support/users/titsmaker/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/auto-delete-logic/#post-14574519)
 * Status: resolved