For the complete documentation index, see llms.txt. This page is also available as Markdown.

delete_assets

imerit_ango.sdk.SDK.

delete_assets(project_id, asset_ids)

Delete assets from your project.

Parameters

  • project_id: string

  • asset_ids: List[str]

    • A list of asset IDs to be deleted

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

    • Including a status field indicating whether the request was successful and a data field containing the response payload with updated resources produced by the operation.

Example

import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
project_id = os.getenv('PROJECT_ID')

ango_sdk = SDK(api_key)

asset_id_list = ["asset_id_1", "asset_id_2"]
sdk_response = ango_sdk.delete_assets(project_id=project_id, asset_ids=asset_id_list)
curl -X DELETE "https://imeritapi.ango.ai/v2/project/$PROJECT_ID/assets" \
  -H "Content-Type: application/json" \
  -H "apikey: $ANGO_API_KEY" \
  -d '{
    "assets": ["asset_id_1", "asset_id_2"],
    "project": "$PROJECT_ID"
  }'
Sample Output

See also

get_assets

Last updated