---
title: "Delete a domain from an Office 365 instance"
method: DELETE
path: "/api/v2/office365s/{office365_id}/domains/{domain_id}"
tags: ["Office 365"]
---

# Delete a domain from an Office 365 instance

`DELETE /api/v2/office365s/{office365_id}/domains/{domain_id}`

## Request

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

Delete a domain from a specific M365/Azure AD directory sync integration instance.

#### Sample Request
```
curl -X POST https://console.jumpcloud.com/api/v2/office365s/{OFFICE365_ID}/domains/{DOMAIN_ID} \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: {API_KEY}'
```

## Path parameters

- `office365_id` string, byte, required
- `domain_id` string, byte, required

## Response `200`

OK

- O365DomainResponse
  - `domain` O365Domain, nullable
    - `default` boolean
    - `domain` string
    - `objectId` string, byte
    - `resourceObjectId` string, byte: ObjectID of the Office 365 suite.

## Other responses

- `401`: Unauthenticated
- `403`: Unauthorized
- `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)
