---
title: "Delete a 'AutomationSource' by id"
method: DELETE
path: "/atm-source/{id}"
tags: ["AutomationSource"]
---

# Delete a 'AutomationSource' by id

`DELETE /atm-source/{id}`

## Request

- Base URL: `https://app.testiny.io/api/v1`
- URL: `https://app.testiny.io/api/v1/atm-source/{id}`
- Auth: API key in header `X-Api-Key`
- TypeScript: <https://skmtc.dev/testiny/apis/testiny-api/docs/atm-source/:id/delete.ts> (a function with typed inputs; its response is checked against the schema)

If the entity type supports soft-deletion this operation only soft-deletes the entity.

## Path parameters

- `id` integer, required

## Response `200`

Returns a single AutomationSource

- AutomationSource
  - `id` integer: The unique entity id - must be a positive integer
  - `project_id` integer: The project id this entity or mapping belongs to
  - `name` string: The name property
  - `display_name` string: Display name for automation source in user interface
  - `retention_days` number: The retention_days property

## Other responses

- `4XX`: The request failed because invalid request parameters or data were supplied or access was denied.
- `5XX`: The request failed because an error occurred during processing of the request.

---

[API](https://skmtc.dev/testiny/apis/testiny-api.md) - [All operations](https://skmtc.dev/testiny/apis/testiny-api/llms.txt) - [OpenAPI document](https://skmtc.dev/testiny/apis/testiny-api/revisions/8f7643b2429d?raw)
