Skip to content

Commit 855a7d1

Browse files
authored
Merge pull request #206292 from sdgilley/patch-13
Update concept-plan-manage-cost.md
2 parents ec55513 + 905b8a8 commit 855a7d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/machine-learning/concept-plan-manage-cost.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@ After you delete an Azure Machine Learning workspace in the Azure portal or with
7979

8080
To delete the workspace along with these dependent resources, use the SDK:
8181

82-
[!INCLUDE [sdk v1](../../includes/machine-learning-sdk-v1.md)]
82+
[!INCLUDE [sdk v2](../../includes/machine-learning-sdk-v2.md)]
8383
```python
84-
ws.delete(delete_dependent_resources=True)
84+
from azure.ai.ml.entities import Workspace
85+
ml_client.workspaces.begin_delete(name=ws.name, delete_dependent_resources=True)
8586
```
8687

8788
If you create Azure Kubernetes Service (AKS) in your workspace, or if you attach any compute resources to your workspace you must delete them separately in [Azure portal](https://portal.azure.com).

0 commit comments

Comments
 (0)