---
title: "Delete a domain from a Google Workspace integration instance"
method: DELETE
path: "/api/v2/gsuites/{gsuite_id}/domains/{domainId}"
tags: ["G Suite"]
---

# Delete a domain from a Google Workspace integration instance

`DELETE /api/v2/gsuites/{gsuite_id}/domains/{domainId}`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/domains/{domainId}`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/gsuites/:gsuite_id/domains/:domainId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete a domain from a specific Google Workspace directory sync integration instance.

#### Sample Request
```
curl -X DELETE https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/domains/{domainId} \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}'
```

## Path parameters

- `gsuite_id` string, byte, required
- `domainId` string, byte, required

## Response `200`

OK

- JumpcloudGappsDomainResponse
  - `domain` JumpcloudGappsDomain
    - `accountObjectId` string, byte: Unique identifier of the GSuite.
    - `default` boolean: Suggests if the domain is default
    - `domain` string: name of the domain
    - `objectId` string, byte: Unique identifier of the Domain.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `default`: An unexpected error response.

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
