---
title: "Delete a channel"
method: DELETE
path: "/settings/channels/{id}"
tags: ["Admin Settings: Channels"]
---

# Delete a channel

`DELETE /settings/channels/{id}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/settings/channels/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/settings/channels/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Refuses with HTTP 400 if this is the only remaining channel OR if its code matches the application-wide default channel (config("app.channel")).

## Path parameters

- `id` integer, required

## Response `200`

Channel deleted.

## Other responses

- `400`: Cannot delete — last channel or default app channel.
- `404`: Channel not found.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
