{"id":1403158,"date":"2017-12-11T12:59:05","date_gmt":"2017-12-11T20:59:05","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/"},"modified":"2017-12-11T12:59:05","modified_gmt":"2017-12-11T20:59:05","slug":"cleanup-recurring-events-problems-with-past-events-cleanup-categories","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/","title":{"rendered":"Cleanup Recurring Events: problems with past events cleanup &amp; categories"},"content":{"rendered":"<p>I am testing this extension to clean up past recurrences of ongoing events for a site with lots of recurring events, and the past events need to be purged\/cleaned up within events that are at least a month old. I am encountering the following problems:<\/p>\n<p>1. I cannot reliably clean up old recurrences. When I set the recurrence settings under Evetns -&gt; Settings, I set it to only create events for the next month, and to delete events older than 1 month, but when I head to one recurring event and hit Save, old events don&#8217;t seem to be automatically deleted, and the event appears to have created more recurrences through January 2019 (I hit Save today, Dec 11th 2017). So I moved on to just testing by manually entering the ID of the event in question and removing all recurrences.<\/p>\n<p>2. Doing the above now does something odd &#8211; it takes the event in question out of its primary category and sub categories under Events, and then the entire primary category it belonged to (along with all sub categories) are completely gone from the site. This in turn knocks out every other event that was under the same primary category and one of its sub categories. I am doing this testing on a dev environment cloned from the live environment, so I compared the list of categories and sure enough, there are many categories missing. I had previously seen these categories in place on dev before I ran the Cleanup tool.<\/p>\n<p>Is this a known issue for anyone else? How can we reliably make sure that we are only deleting past events? I would also like to verify that this tool won&#8217;t completely remove categories like this, since all of our client&#8217;s events are very meticulously set up with event categories, instructors, venues etc. and we don&#8217;t want to lose any of that work.<\/p>\n","protected":false},"template":"","class_list":["post-1403158","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Cleanup Recurring Events: problems with past events cleanup &amp; categories -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cleanup Recurring Events: problems with past events cleanup &amp; categories -\" \/>\n<meta property=\"og:description\" content=\"I am testing this extension to clean up past recurrences of ongoing events for a site with lots of recurring events, and the past events need to be purged\/cleaned up within events that are at least a month old. I am encountering the following problems: 1. I cannot reliably clean up old recurrences. When I [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/\",\"name\":\"Cleanup Recurring Events: problems with past events cleanup &amp; categories -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-12-11T20:59:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Additional Help\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/others\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Extensions\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/others\/extensions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Cleanup Recurring Events: problems with past events cleanup &amp; categories\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cleanup Recurring Events: problems with past events cleanup &amp; categories -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/","og_locale":"en_US","og_type":"article","og_title":"Cleanup Recurring Events: problems with past events cleanup &amp; categories -","og_description":"I am testing this extension to clean up past recurrences of ongoing events for a site with lots of recurring events, and the past events need to be purged\/cleaned up within events that are at least a month old. I am encountering the following problems: 1. I cannot reliably clean up old recurrences. When I [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/","name":"Cleanup Recurring Events: problems with past events cleanup &amp; categories -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-12-11T20:59:05+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/cleanup-recurring-events-problems-with-past-events-cleanup-categories\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Additional Help","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/others\/"},{"@type":"ListItem","position":4,"name":"Extensions","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/others\/extensions\/"},{"@type":"ListItem","position":5,"name":"Cleanup Recurring Events: problems with past events cleanup &amp; categories"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1403158","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1403158\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1403158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}