> 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/marketingexpense/_delete.md).

# \_delete

Deletes a chosen Marketing Expense

### Parameter

#### id

The ID of the Marketing Expense to be deleted

### Example

```
FM_api(
    'MarketingExpense_delete',[
      'id' => '19'
    ]
);
```

### Results

#### On Success

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

#### On Failure

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

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

If there is no Marketing Expense found linked to the ID given

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