We are using ACF plugin to set time, date and location at some events and now we need to manually delete all data which is outdated (date older as today). Is there any simple way to do it on custom PHP page? I tried to search for fields in postmeta table but if I just delete those fields it’s messed up because number needs to be changed (…_0_…, …_1_…,…) also the number of entries which is not really nice that for all fields I need to rename meta_key. Is there any easier way?
So What I need is same function as when I click X button next to added row, only in PHP script because I need to go through all dates.