---
title: Remove source from an existing access group
canonical: https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-2-0/access-group/remove-source-from-an-existing-access-group/
product: CloudConnexa Docs
---

# Remove source from an existing access group

`DELETE /api/v1/access-groups/{id}/source`

**Remove source from an existing access group.**

You can remove one or more `source` array elements for a specific access group.

Defining only `type` request parameter you will remove all sources of this type.

Defining `type` and `parentId` request parameters you will remove all sources of this type and parent.

Defining `type`, `parentId` and `childId` request parameters you will remove an array element matching all `type`, `parentId` and `childId`.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| id | path | string | true | Access group ID |
| type | query | string | true | Source type |
| parentId | query | string | false | Parent entity ID |
| childId | query | string | false | Child entity ID |

### Enumerated Values

| Parameter | Value |
| --- | --- |
| type | USER\_GROUP |
| type | NETWORK\_SERVICE |
| type | HOST |

## Responses

| Status | Meaning | Description | Schema |
| --- | --- | --- | --- |
| 200 | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | OK | [AccessGroupResponse](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-0/schemas/accessgroupresponse.md) |

To perform this operation, you must be authenticated by means of one of the following methods: oauth

---

Prev: [Add new source to an existing access group](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-2-0/access-group/add-new-source-to-an-existing-access-group.md)
Next: [Add new destination to an existing access group](https://openvpn.net/cloud-docs/developer/cloudconnexa-api-v1-2-0/access-group/add-new-destination-to-an-existing-access-group.md)
Index: https://openvpn.net/cloud-docs/llms.txt
