## Remove a distributor ID (tenant:masterdata:write)

`DELETE /api/masterdata/distributor-ids/{source}/{distributorId}`

Module: Master data · operationId: `removeDistributorId` · Tag: Distributor IDs · Auth: access token (`Authorization: Bearer <accessToken>`)

Emits `masterdata.distributor_id.removed`.

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `source` | path | string | yes | Distributor source, lower-case (`egis`, `ingram`, `infinigate`, `amazon`, …) |
| `distributorId` | path | string | yes | The distributor's own supplier ID (matched case-insensitively) (max length 64) |

### Responses

- **204** Removed
- **400** Invalid input (`invalid`); `field` names the first, `details.fields` each invalid field (`application/json`)
- **401** Missing, invalid or expired token (empty body)
- **403** The token lacks the permission or carries no tenant (`application/json`)
- **404** Not found in the caller's tenant (or merged, see `code`) (`application/json`)

### Example request

```bash
curl -X DELETE 'https://api.mbcom.cloud/api/masterdata/distributor-ids/egis/700123' \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```
