Remove
collections.models.remove(strcollection_id, ModelRemoveParams**kwargs) -> ModelRemoveResponse
DELETE/collections/{collectionId}/models
Remove models from a specific collection
Remove
import os
from scenario_sdk import Scenario
client = Scenario(
api_key=os.environ.get("SCENARIO_SDK_API_KEY"), # This is the default and can be omitted
api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"), # This is the default and can be omitted
)
model = client.collections.models.remove(
collection_id="collectionId",
model_ids=["string"],
)
print(model.collection){
"collection": {
"id": "id",
"assetCount": 0,
"createdAt": "createdAt",
"itemCount": 0,
"modelCount": 0,
"name": "name",
"ownerId": "ownerId",
"updatedAt": "updatedAt",
"thumbnail": {
"assetId": "assetId",
"url": "url"
}
}
}Returns Examples
{
"collection": {
"id": "id",
"assetCount": 0,
"createdAt": "createdAt",
"itemCount": 0,
"modelCount": 0,
"name": "name",
"ownerId": "ownerId",
"updatedAt": "updatedAt",
"thumbnail": {
"assetId": "assetId",
"url": "url"
}
}
}