> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# deleteMarketingAutomation

> Delete an automation and stop its in-flight runs. Returns true if an owned automation was deleted, false if none matched.

**Required scopes:** [`marketing_automations_write`](/docs/api-reference/v3/reference/scopes#scope-marketing_automations_write)

## Arguments

<ResponseField name="id" type="ID!" required>
  The automation's `id`, or its `legacyId` from an earlier version of the Redo API.
</ResponseField>

## Returns

<ResponseField name="deleteMarketingAutomation" type="Boolean!" required />

## Example

```graphql theme={null}
mutation {
  deleteMarketingAutomation(id: "...")
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.