> az ml data update -n <my_imported_ds> -v <version_number> --set auto_delete_setting.value='45d'
> az ml data update -n <my_imported_ds> -v <version_number> --set auto_delete_setting.condition='created_greater_than'
from azure.ai.ml.entities import Data
from azure.ai.ml.constants import AssetTypes
name='<my_imported_ds>'
version='<version_number>'
type='mltable'
auto_delete_setting = AutoDeleteSetting(
condition='created_greater_than', value='45d'
)
my_data=Data(name=name,version=version,type=type, auto_delete_setting=auto_delete_setting)
ml_client.data.create_or_update(my_data)
> az ml data update -n <my_imported_ds> -v <version_number> --remove auto_delete_setting
from azure.ai.ml.entities import Data
from azure.ai.ml.constants import AssetTypes
name='<my_imported_ds>'
version='<version_number>'
type='mltable'
my_data=Data(name=name,version=version,type=type, auto_delete_setting=None)
ml_client.data.create_or_update(my_data)
> az ml data list --query '[?auto_delete_setting.\"condition\"==''created_greater_than'']'
> az ml data list --query '[?auto_delete_setting.\"value\"==''30d'']'