How to unset fieldset in hook_form_alter? I want to unset a fieldset programmatically which is available in the content type. I tried to unset like this in hook_form_alter,

 unset($form['field_first_deposit']);


But it doesn't work, where as hiding individual fields works in the same format. I tried hide() too , but still it doesn't work.

Any help will be much appreciated and Thanks in advance.
The mentioned solution ['#access'] = false will be a possible solution, but if it's not working you may try: 

/**
 * Implements hook_form_FORM_ID_alter().
 */
function YOUR_MODULE_form_FORM_ID_alter(&amp;$form, &amp;$form_state) {

  $form['#after_build'][] = 'YOUR_MODULE_form_FORM_ID_after_build';

}

/**Replace MACHINE_NAME with your fieldset group machine name.**/

function YOUR_MODULE_form_FORM_ID_after_build(&amp;$form, &amp;$form_state) {

  // Hide the B2B group.
  field_group_hide_field_groups($form, array('group_MACHINE_NAME'));

  return $form;
}