delete_potting_region#

Layer.delete_potting_region(request: DeletePottingRegionRequest) list[SherlockCommonService_pb2.ReturnCode]#

Delete on or more potting regions in a specific project.

Available Since: 2025R1

Parameters:

request (DeletePottingRegionRequest) – Contains all the information needed to delete one or more potting regions per project.

Returns:

Return codes for each request.

Return type:

list[SherlockCommonService_pb2.ReturnCode]

Examples

>>> from ansys.sherlock.core.launcher import launch_sherlock
>>> from ansys.sherlock.core.types.layer_types import DeletePottingRegionRequest
>>> from ansys.sherlock.core.types.layer_types import PottingRegionDeleteData
>>> sherlock = launch_sherlock()
>>>
>>> delete_request_example = DeletePottingRegionRequest(
    project=project,
    potting_region_delete_data=[
        PottingRegionDeleteData(
            cca_name=cca_name,
            potting_id=potting_id
        )
    ]
)
>>> responses_example = sherlock.layer.delete_potting_region(delete_request_example)