Hi,
I have looked through the forum and found a solution to remove the past event datetimes and tickets but when I added the code it didn’t remove them. There was still a lock beside the past datetimes not allowing us to delete them. Is there another way to have the past datetimes and tickets automatically or manually delete them?
Are you looking to re-use a previous event by adding new datetimes/tickets to that event? If so I would recommend duplicating the event and using the new event rather than doing the above.
The reason the datetimes and tickets are locked if because registrations have been assigned to them, if you remove them you break the relationship between the event, datetime, ticket and registration. In other words if you remove locked datetimes you break registrations.
We are wanting to leave the event the same but add new datetimes and tickets to it. For example: we have set up registration for a course. When new course dates are available we want to add them but want to remove the past/completed ones because it’s getting hard to manage the event with all the expired course dates. We want to remove them to clean up the event admin.
One way to work around this is duplicate the event, remove the datetimes/tickets from the duplicate and create the new ones. Then alter the slug of the original event, say its ‘course-a’, you can change it to ‘course-a-first’ and set the slug of the duplicate to ‘course-a’.
That way any links that previously linked to the event will continue to work.
The support post ‘How to remove past event datetimes and tickets’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.