# Delete opportunity

> Delete an opportunity.

Source: https://docs.mycrmsim.com/docs/opportunities/delete-opportunity

```http
DELETE https://backend.mysmsgateway.app/api/v1/ext/opportunities/{id}
```

- Category: myCRMSIM Opportunities / Opportunities
- Auth: Bearer access token
- Scope: `opportunities.write`

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | number | yes | Opportunity id. Example: `55` |

## Response 200

OK

```json
{
  "success": true,
  "message": "Opportunity deleted"
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): opportunities.write. This integration was granted: …"
}
```

## Response 404

Opportunity does not exist or is not owned by the installer

```json
{
  "success": false,
  "message": "Opportunity not found or not accessible to this token"
}
```
