Remove one or more devices from a device group.

@param int   $groupId
@param array $deviceIdentifiers

@return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
18751
public function removeDevices(int $groupId, array $deviceIdentifiers)
    {
        $params = [
            'group_id' => $groupId,
            'device_identifiers' => $deviceIdentifiers,
        ];

        return $this->httpPostJson('shakearound/device/group/deletedevice', $params);
    }
1122301
public function deleteGroup($groupId)
    {
        if ($this->contentTypeGateway->countTypesInGroup($groupId) !== 0) {
            throw new Exception\GroupNotEmpty($groupId);
        }
        $this->contentTypeGateway->deleteGroup($groupId);
    }
778150
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceTierPriceEntry commerceTierPriceEntry : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceTierPriceEntry);
		}
	}
1205891
public function groupAdddevice($group_id,array $device_identifiers){
        $params=array(
            'group_id'=>$group_id,
            'device_identifiers'=>$device_identifiers
        );
        $rst = $this->_request->post($this->_url . 'group/adddevice', $params);
        return $this->_client->rst($rst);
    }
615071
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceSubscriptionEntry commerceSubscriptionEntry : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceSubscriptionEntry);
		}
	}
53538
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceCountry commerceCountry : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceCountry);
		}
	}
145917
@Override
	public void removeByGroupId(long groupId) {
		for (CommerceWishList commerceWishList : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(commerceWishList);
		}
	}
908175
public function deleteGroup($groupId)
    {
        $q = $this->dbHandler->createDeleteQuery();
        $q->deleteFrom($this->dbHandler->quoteTable('ezcontentclassgroup'))
            ->where(
                $q->expr->eq(
                    $this->dbHandler->quoteColumn('id'),
                    $q->bindValue($groupId, null, \PDO::PARAM_INT)
                )
            );
        $q->prepare()->execute();
    }
556767
public function update(int $groupId, string $name)
    {
        $params = [
            'group_id' => $groupId,
            'group_name' => $name,
        ];

        return $this->httpPostJson('shakearound/device/group/update', $params);
    }
678012
@Override
	public void removeByGroupId(long groupId) {
		for (CPDefinitionSpecificationOptionValue cpDefinitionSpecificationOptionValue : findByGroupId(
				groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpDefinitionSpecificationOptionValue);
		}
	}
130436
public function removeSubscriber($groupId, $subscriberId)
    {
        $endpoint = $this->endpoint . '/' . $groupId . '/subscribers/' . urlencode($subscriberId);

        $response = $this->restClient->delete($endpoint);

        return $response['body'];
    }
586373
@Override
	public void removeByGroupId(long groupId) {
		for (CPOptionCategory cpOptionCategory : findByGroupId(groupId,
				QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {
			remove(cpOptionCategory);
		}
	}
421634
public function setGroupId( $groupId )
    {
        $this->groupId = (int) $groupId ?: null;

        if ( $this->group && $this->group->id != $this->groupId )
        {
            $this->group = null;
        }

        return $this;
    }
485287
public function deleteAction($groupId)
    {
        $groupManager = $this->get('phlexible_user.group_manager');

        $group = $groupManager->find($groupId);
        $name = $group->getName();

        $groupManager->deleteGroup($group);

        $this->get('phlexible_message.message_poster')
            ->post(UsersMessage::create('Group "'.$group->getName().'" deleted.'));

        return new ResultResponse(true, "Group $name deleted.");
    }
715439
@Override
	public CPDefinitionInventory removeByUUID_G(String uuid, long groupId)
		throws NoSuchCPDefinitionInventoryException {
		CPDefinitionInventory cpDefinitionInventory = findByUUID_G(uuid, groupId);

		return remove(cpDefinitionInventory);
	}
471700
function (identifier)  {
    var path;
    if (identifier) {
      path = this.constructPath(constants.DEVICES, identifier);
      return this.Core.DELETE(path);
    } else {
      return this.rejectRequest('Bad Request: A device identifier is required.');
    }
  }
607599
def remove_from_group(self, devices):
        """"""
        ids = {d.id for d in self.devices_in_group()}
        ids.difference_update(self._device_ids(devices))
        self._set_group(ids)