destroy_saved_scenario
destroy_saved_scenario
Service for permanently deleting a SavedScenario and its underlying Session (hard delete with cascade).
Classes
DestroySavedScenarioRunner
Bases: BaseRunner[Dict[str, Any]]
Runner for permanently deleting a SavedScenario AND its underlying ETEngine scenario (hard delete with cascade).
DELETE /api/v3/saved_scenarios/:id (SavedScenario) DELETE /api/v3/scenarios/:id (Session)
WARNING: This is a permanent deletion and cannot be undone. Both the SavedScenario and its underlying Session will be permanently removed.
Functions
run
staticmethod
Permanently delete a SavedScenario and its underlying Session (hard delete with cascade).
WARNING: This is a permanent deletion and cannot be undone. Both the SavedScenario in MyETM and the underlying Session in ETEngine will be permanently removed.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
client
|
BaseClient
|
The HTTP client to use |
required |
saved_scenario_id
|
int
|
ID of the SavedScenario to permanently delete |
required |
scenario_id
|
int
|
ID of the underlying ETEngine scenario to permanently 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 = DestroySavedScenarioRunner.run( client=client, saved_scenario_id=123, scenario_id=456 ) if result.success: print("SavedScenario and Session permanently deleted")