Delete a strategy (soft delete)
delete_strategySoft-deletes a strategy so it no longer appears in lists or can be used for backtests. Data is preserved in the database for compliance. Two-phase operation: call without confirm (or confirm=false) to preview what will be affected. Call with confirm=true to execute the deletion. Refuses if the strategy has active deployments (stop them first).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Set to true to actually delete. Default false returns a preview of what will be affected. | |
| strategyId | No | The Strategy entity ID | |
| aiStrategyId | No | The AiStrategy entity ID |