# Delete Referral Program

Deletes a referral program, also without referral program access; one still used elsewhere is refused, and the refusal names what uses it, as the app's delete dialog does. Every contact's personal recommendation link stops working and the program's SmartTag is deleted with it, which cannot be undone; contacts, counter values and manual tags stay. Pass confirm=true only after the user confirmed deleting this program.

## Input schema:

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "ID of the program, from search-referral-programs",
      "minimum": 1
    },
    "confirm": {
      "type": "boolean",
      "description": "true only after the user confirmed deleting this program",
      "default": false
    },
    "accountId": {
      "type": [
        "null",
        "integer"
      ],
      "description": "User ID of the account; omit for the account of the access token",
      "default": null,
      "minimum": 1
    }
  },
  "required": [
    "id"
  ],
  "additionalProperties": false
}
```

## Output schema:

```json
{
  "type": "object",
  "required": [
    "accountId",
    "id",
    "name"
  ],
  "properties": {
    "accountId": {
      "type": "integer"
    },
    "id": {
      "type": "integer"
    },
    "name": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
```

