Working with WatchableFormValue fields

I have 2 group fields in a form namely Schedule and Alternative Schedule. Then I have one button field called “Remove Alternative Schedule”. I would like to remove the group field Alternative Schedule when that button is clicked. I’m working on React and the form fields are stored in a state variable fields which is being passed to the WatchableFormValue fields (as below). I have verified that the state variable fields is updated on button click but the form is still showing the Alternative Schedule group field. I’m sure I’m doing it wrong — need your advice please. Thanks!

  const [modifiedValues, form] = useForm(formConfig, {
    fields: fields,
  })