Hi guys.
The above solution is good, and the other way to do it is to update the field’s setting using the acf_update_field function.
First use acf_get_field(‘field_key’) to load the field, modify the settings and then use acf_update_field($field) to update it back into the DB