also… don’t run acf_get_local_store( 'groups' )->remove( $key )
directly like some other post here suggests. This is literally exactly what acf_remove_local_field_group
does at the moment if you look in the code.
acf_get_local_store
is not meant to be run directly, I don’t think.