'Delete the masking view, storage groups and initiator group.
:param serial_number: array serial number
:param device_id: the device id
:param masking_view: masking view name
:param storagegroup_name: storage group name
:param parent_sg_name: the parent storage group name
:param connector: the connector object
:param move: flag to indicate if the volume should be moved
:param extra_specs: the extra specifications'

def _delete_mv_ig_and_sg(self, serial_number, device_id, masking_view, storagegroup_name, parent_sg_name, connector, move, extra_specs):

    host = (self.utils.get_host_short_name(connector['host']) if connector else None)
    initiatorgroup = self.rest.get_element_from_masking_view(serial_number, masking_view, host=True)
    self._last_volume_delete_masking_view(serial_number, masking_view)
    self._last_volume_delete_initiator_group(serial_number, initiatorgroup, host)
    self._delete_cascaded_storage_groups(serial_number, storagegroup_name, parent_sg_name, extra_specs, device_id, move)
