---
schema_version: "1"
id: c728f82cff3d38a411f9f30e89d4bc5212a1b3af97bdf8e82ec8e6e260a2dac4
title: deleteMembers Method
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/industries/cme/guides/comms-t-deletemembers-method.md
canonical_url: https://developer.salesforce.com/docs/industries/cme/guide/comms-t-deletemembers-method.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3f4fb2ff8a5cdd2eb420de6c430a9cae126ce76ccc4d26d5ce751c5517021e1b
products:
  - Communications, Media, Energy and Utilities APIs (Managed Package)
  - Industries Developer Documentation
---
# deleteMembers Method

Deletes the selected members from one or multiple groups.

<!-- 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                                                                                     |
| ---------- | --------------------------- | ----------------------------------------------------------------------------------------------- |
| parentId   | Required                    | Opportunity ID.                                                                                 |
| contextId  | Required                    | Parent cart ID (Master or Enterprise Quote or Order ID)                                         |
| memberType | Required                    | CPQ Group Member Type Name. For example: ServicePoint.                                          |
| cartType   | Optional: Defaults to Quote | Quote or Order                                                                                  |
| memberIds  | Required                    | List of Member IDs to delete. These members can belong to different groups of this parent cart. |

## 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.-->

```
{"memberIds":["a4o0b000000VN99AAG","a4o0b000000VN9DAAW"],"memberType":"ServicePoint","parentId":"0060b00000vGbYbAAK","contextId":"0Q00b000000znTYCAY","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"}
```

