Remove AI Asset

remove_asset(self, asset_id: str, container_type: str = None, container_id: str = None)

Remove a model or model usecase asset.”

Parameters:
  • asset_id (str) – Id of the asset

  • container_type (str, optional) – container where asset is stored, defaults to container type use when initiating client

  • container_id (str, optional) – container id where asset is stored, defaults to container id used when initiating client. For external models, if not provided, uses available platform asset catalog.

Raises:

ClientError – Report exception details

The way you can use me is :

>>> client.assets.remove_asset(asset_id=<model or model usecase id>)
>>> client.assets.remove_asset(asset_id=<model or model usecase id>,container_type=<space,project or catalog>, container_id=<container id>)
delete_prompt_asset(self, asset_id: str, container_type: str = None, container_id: str = None)

Deletes a prompt asset after checking the tracking status of the prompt against an AI usecase In case a prompt is tracked to an ai usecase, then user is warned. User may untrack the prompt and re-execute the delete prompt command for deleting the same.

Parameters:
  • asset_id (str) – Id of the asset

  • container_type (str, optional) – container where asset is stored, defaults to container type use when initiating client

  • container_id (str, optional) – container id where asset is stored, defaults to container id used when initiating client. For external models, if not provided, uses available platform asset catalog.

The way you can use me is :

>>> client.assets.delete_prompt_asset(asset_id=<model or model usecase id>)
>>> client.assets.delete_prompt_asset(asset_id=<model or model usecase id>,container_type=<space,project or catalog>, container_id=<container id>)