# Delete multicast consumer configurations

> [!NOTE]
> **GA with allowlist** : ULL Solution is available only to approved exchange operators and their exchange participants.
> If you are an approved exchange participant, contact [exchanges@google.com](mailto:exchanges@google.com) to request access.

This page describes how to delete existing multicast consumer configurations.

## Before you begin

Set the gcloud CLI to use the project in which you want to
delete multicast configurations. Alternatively you can include the
`--project=PROJECT_ID` flag for each command in the
following procedures.

```
    gcloud config set project PROJECT_ID
```

Replace `PROJECT_ID` with the ID of the project.

## Delete multicast consumer configurations

This section describes how to delete existing multicast consumer configurations.

To delete a multicast consumer association, you must first delete all of its
multicast group consumer activations.

### Delete multicast group consumer activations

### gcloud

To delete a multicast group consumer activation, use the
[`network-services multicast-group-consumer-activations delete` command](https://docs.cloud.google.com/sdk/gcloud/reference/network-services/multicast-group-consumer-activations/delete).

```
  gcloud network-services multicast-group-consumer-activations delete GROUP_CONSUMER_ACTIVATION_NAME \
      --location=ZONE
```

Replace the following values:

- `GROUP_CONSUMER_ACTIVATION_NAME`: the name of the multicast group consumer activation
- `ZONE`: the zone in which the multicast consumer VPC network was activated

### API

To delete a multicast group consumer activation, use the
[`multicastGroupConsumerActivations.delete` method](https://docs.cloud.google.com/vpc/docs/multicast/reference/rest/v1/projects.locations.multicastGroupConsumerActivations/delete.md.txt).

```
DELETE https://networkservices.googleapis.com/v1/projects/PROJECT_ID/locations/ZONE/multicastGroupConsumerActivations/GROUP_CONSUMER_ACTIVATION_NAME
```

Replace the following values:

- `PROJECT_ID`: the ID of the project
- `GROUP_CONSUMER_ACTIVATION_NAME`: the name of the multicast group consumer activation
- `ZONE`: the zone in which the multicast consumer VPC network was activated

### Delete multicast consumer associations

### gcloud

To delete a multicast consumer association, use the
[`network-services multicast-consumer-associations delete` command](https://docs.cloud.google.com/sdk/gcloud/reference/network-services/multicast-consumer-associations/delete).

```
  gcloud network-services multicast-consumer-associations delete CONSUMER_ASSOCIATION_NAME \
      --location=ZONE
```

Replace the following values:

- `CONSUMER_ASSOCIATION_NAME`: the name of the multicast consumer association
- `ZONE`: the zone in which the multicast consumer association was created

### API

To delete a multicast consumer association, use the
[`multicastConsumerAssociations.delete` method](https://docs.cloud.google.com/vpc/docs/multicast/reference/rest/v1/projects.locations.multicastConsumerAssociations/delete.md.txt).

```
DELETE https://networkservices.googleapis.com/v1/projects/PROJECT_ID/locations/ZONE/multicastConsumerAssociations/CONSUMER_ASSOCIATION_NAME
```

Replace the following values:

- `PROJECT_ID`: the ID of the project
- `CONSUMER_ASSOCIATION_NAME`: the name of the multicast consumer association
- `ZONE`: the zone in which the multicast consumer association was created