---
title: "Delete Source Route"
method: DELETE
path: "/companies/{company_id}/sources/{source_id}"
tags: ["sources"]
---

# Delete Source Route

`DELETE /companies/{company_id}/sources/{source_id}`

## Request

- Base URL: `https://app.zalster.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zalster.com/companies/{company_id}/sources/{source_id}`
- Auth: none declared

Delete the source with its products and their creatives. The body must
repeat its exact name; the uploaded file is removed once the deletion has
committed, and the creatives' files by the sweep worker (decision 222).

## Path parameters

- `company_id` string, uuid, required: Company id
- `source_id` string, uuid, required: Source id

## Request body

- SourceDeleteRequest
  - `confirm_name` string, required

## Response `200`

Successful Response

- SourceDeletionImpactOut: What deleting a source takes with it (decision 201): its products go too.
  - `source_id` string, uuid, required
  - `source_name` string, required
  - `source_items` integer, required
  - `products` integer, required
  - `products_active` integer, required
  - `import_runs` integer, required
  - `output_feeds_emptied` string[]
  - `product_sets_emptied` string[]
  - `templates_emptied` string[]

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zalster/apis/zalster-feed-processor.md) - [All operations](https://skmtc.dev/zalster/apis/zalster-feed-processor/llms.txt) - [OpenAPI document](https://skmtc.dev/zalster/apis/zalster-feed-processor/revisions/d0b9dc66ad36?raw)
