> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/marketingsource/_delete.md).

# \_delete

Deletes a chosen Marketing Source

### Parameter

#### id

The ID of the chosen Marketing Source

### Example

```
FM_api(
    'MarketingSource_delete',[
      'id' => '9'
    ]
);
```

### Results

#### On Success

```
{"ok":1}
```

#### On Failure

If the "id" parameter is not set, or has a value less than 1

```
{"error":"invalid or missing parameter: id"}
```

If there's no existing Marketing Source linked to the "id" parameter

```
{"error":"no such marketing source"}
```
