delete_collection
delete_collection
Service for deleting a collection.
Classes
DeleteCollectionRunner
Bases: BaseRunner[Dict[str, Any]]
Runner for deleting a Collection from MyETM.
DELETE /api/v3/collections/:id
Functions
run
staticmethod
Delete a Collection from MyETM.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
BaseClient
|
The HTTP client to use |
required |
collection_id
|
int
|
ID of the Collection to delete |
required |
**kwargs
|
Any
|
Additional arguments passed to the request |
{}
|
Returns:
| Type | Description |
|---|---|
ServiceResult[Dict[str, Any]]
|
ServiceResult with deletion confirmation data |
Example usage
result = DeleteCollectionRunner.run( client=client, collection_id=123 ) if result.success: print("Collection deleted successfully")