# Delete a SIP trunk gateway

`DELETE /v1/voice/trunks/{trunk_id}/gateways/{gateway_id}`

Removes the gateway. Calls already ringing this address are not affected. Removing the last gateway prevents inbound delivery until a gateway is added again; it does not change the trunk's direction settings. The trunk must have inbound calling enabled, otherwise this returns `412 Precondition Failed`.

## Code samples

**TypeScript**

```ts
await bird.voice.trunks.gateways.delete("TRUNK_ID", "GATEWAY_ID");
```

Examples: [TypeScript](/docs/api/reference/delete-voice-trunk-gateway.ts.md) · [Python](/docs/api/reference/delete-voice-trunk-gateway.py.md) · [Go](/docs/api/reference/delete-voice-trunk-gateway.go.md) · [PHP](/docs/api/reference/delete-voice-trunk-gateway.php.md) · [CLI](/docs/api/reference/delete-voice-trunk-gateway.cli.md) · [MCP](/docs/api/reference/delete-voice-trunk-gateway.mcp.md) · [cURL](/docs/api/reference/delete-voice-trunk-gateway.curl.md)

## Path parameters

- `trunk_id` (string)
- `gateway_id` (string)

## Related resources

- [Should I use a Bird SDK or call the API directly?](/explained/platform/should-i-use-an-sdk-or-call-the-api-directly) (answer)
- [Build your first integration](/learn/paths/integration) (course)
- [Send your first email](/docs/get-started/send-your-first-email) (docs)

[Get an implementation brief](/learn/workspace?topic=api-basics)
