delete_event#

Lifecycle.delete_event(request)#

Delete a life cycle event from a given phase in a project.

Available Since: 2026R1

Parameters:
requestDeleteEventRequest

Request object containing project, phase name, and event name.

Returns:
:
SherlockCommonService_pb2.ReturnCode

Status code of the response. 0 for success.

Return type:

ReturnCode

Examples

>>> from ansys.sherlock.core.types.lifecycle_types import DeleteEventRequest
>>> from ansys.sherlock.core.launcher import launch_sherlock
>>> sherlock = launch_sherlock()
>>> response = sherlock.lifecycle.delete_event(
>>>     DeleteEventRequest(
>>>         project="MyProject",
>>>         phase_name="ThermalPhase",
>>>         event_name="ThermalCycle_A",
>>>     )
>>> )
>>> assert response.value == 0