delete_phase#
- Lifecycle.delete_phase(request)#
Delete a life cycle phase from a project.
Available Since: 2026R1
- Parameters:
- request
DeletePhaseRequest
Request object containing project and phase name.
- request
- Returns:
- :
SherlockCommonService_pb2.ReturnCode
Status code of the response. 0 for success.
- Return type:
ReturnCode
Examples
>>> from ansys.sherlock.core.types.lifecycle_types import DeletePhaseRequest >>> from ansys.sherlock.core.launcher import launch_sherlock >>> sherlock = launch_sherlock() >>> response = sherlock.lifecycle.delete_phase( >>> DeletePhaseRequest( >>> project="MyProject", >>> phase_name="ThermalPhase", >>> ) >>> ) >>> assert response.value == 0