Support

Account

Home Forums Backend Issues (wp-admin) How would I delete all saved ACF Repeater field data from all Users?

Solved

How would I delete all saved ACF Repeater field data from all Users?

  • Hello – have an odd scenario with a data import gone wrong that’s caused data inside an ACF Repeater field to get duplicated.

    Is there a way to run some sort of clean-up script, to remove all of the data inside a specific repeater field within the Users info?

    The ACF Repeater is used to store a list of documents for each user, so looking for a way to flush that data out, so that I’m able to run a clean import.

    Thank you for your help

  • Do a user query to get all the users then use delete_field() using the repeater field name. This will delete the repeater and all sub fields.

  • Thank you, John – will check that out.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.