---
title: "Delete an inventory source"
method: DELETE
path: "/settings/inventory-sources/{id}"
tags: ["Admin Settings: Inventory Sources"]
---

# Delete an inventory source

`DELETE /settings/inventory-sources/{id}`

## Request

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

Delete an inventory source

## Path parameters

- `id` integer, required

## Response `200`

Inventory source deleted.

## Other responses

- `400`: Last remaining source, or referenced by product_inventories.
- `404`: Inventory source 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)
