---
schema_version: "1"
id: 701e429b4ce50a11ef2828aa8063953e4bcf022018c465d2529ef9f5dc4afe23
title: removeGroups Method
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-removegroups-method.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-removegroups-method.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0eb9075b7713cd9799e8feb2fc5013932b16d3d0bdbf0a56233f9b50b968adb9
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# removeGroups Method

Deletes a list of groups and their members.

<!-- Section title is the name of the method followed by "Method". If appropriate, precede the method name with the class name and a colon.-->

## Class

<!-- broken link-->

<!-- Link(s) to the class(es) to which this method belongs. If more than one class implements the same interface, use an itemized list. Don't use a link if the class itself isn't documented for users, but do list the class name.-->


## Input Parameters

<!-- If this method has separate input and output parameters, split this section into two sections titled "Input Parameters" and "Output Parameters". Some methods of classes that implement VlocityOpenInterface2 might require an "Options Parameters" section as well.-->

| Parameter | Required                    | Description                                              |
| --------- | --------------------------- | -------------------------------------------------------- |
| contextId | Required                    | Parent cart ID (Master or Enterprise quote or order ID). |
| groupIds  | Required                    | List of group IDs to be deleted.                         |
| cartType  | Optional, defaults to Quote | Quote or order.                                          |

## Output Parameters

| Parameter | Description           |
| --------- | --------------------- |
| message   | In case of any error. |


## Example Input Data

<!-- This is usually JSON, but it could be XML or a single value. For methods of classes implementing VlocityOpenInterface2 that have options parameters, include those here.-->

```
{"contextId":"0Q00b000000znTYCAY","groupIds":["a4M0b000002CWMGEA4"],"cartType":"Quote"}
```

## Example Output Data

<!-- This is usually JSON, but it could be XML or a single value. Salesforce uses Return Type, but this takes care of that.-->

```
{"error":"OK"}
```

