# Expired events with end times are being removed from upcoming-events even with setting set to -1

**URL:** <https://meta.discourse.org/t/expired-events-with-end-times-are-being-removed-from-upcoming-events-even-with-setting-set-to-1/234125>\
**Category:** Product Support\
**Tags:** events\
**Created:** [July 27, 2022, 8:45am UTC](https://meta.discourse.org/t/expired-events-with-end-times-are-being-removed-from-upcoming-events-even-with-setting-set-to-1/234125 "2022-07-27T08:45:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Helen22](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/helen22/32/271907_2.png) [@Helen22](https://meta.discourse.org/u/Helen22)\
**Post date:** [July 27, 2022, 8:45am UTC](https://meta.discourse.org/t/expired-events-with-end-times-are-being-removed-from-upcoming-events-even-with-setting-set-to-1/234125/1 "2022-07-27T08:45:53Z")

</div>

I am trying to utilise the Calendar Plugin, but it deletes the event from the calendar after it happens despite the fact that the settings are set to -1 to disable the deletion. I’ve also tried setting the expiry to two years (17532hrs) and that also removed the event straight after it happened.

The only way I’ve found to keep the events in the calendar is to remove the end time/date.

Does anyone know why the -1 doesn’t work, and what the solution is?

Thanks

---

_[View the full topic](https://meta.discourse.org/t/expired-events-with-end-times-are-being-removed-from-upcoming-events-even-with-setting-set-to-1/234125)._
