'Delete specified LDEVs from Shadow Image device groups.'

def _delete_pair_config(self, pvol, svol, copy_group, ldev_name):

    pvol_group = (copy_group + 'P')
    svol_group = (copy_group + 'S')
    if self._check_device_grp(pvol_group, pvol, ldev_name=ldev_name):
        self.run_raidcom('delete', 'device_grp', '-device_grp_name', pvol_group, '-ldev_id', pvol)
    if self._check_device_grp(svol_group, svol, ldev_name=ldev_name):
        self.run_raidcom('delete', 'device_grp', '-device_grp_name', svol_group, '-ldev_id', svol)
