> For the complete documentation index, see [llms.txt](https://docs.carbondefi.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.carbondefi.xyz/developer-guides/carbon-defi-sdk/sdk-functions/deletestrategy.md).

# deleteStrategy

This function creates an unsigned transaction to delete an existing strategy. When deleted, the strategy will return all tokens within to the strategy owner.

```
public deleteStrategy(
    strategyId: BigNumberish
  )
```

| Name       | Type   | Description                       |
| ---------- | ------ | --------------------------------- |
| strategyId | number | The ID of the strategy to delete. |

### Returns

This function returns an unsigned transaction, ready to be signed and submitted to the blockchain.
