(
    runId: str,
    run_store: RunStore = Depends(get_run_store),
    engine_store: EngineStore = Depends(get_engine_store),
)
return await PydanticResponse.create(
        content=SimpleEmptyBody.construct(),
        status_code=status.HTTP_200_OK,
    )
Delete a run by its ID.

    Arguments:
        runId: Run ID pulled from URL.
        run_store: Run storage interface.
        engine_store: ProtocolEngine storage and control.
Delete a run by its ID.
Delete a run by its ID .
async def remove_run(
    runId: str,
    run_store: RunStore = Depends(get_run_store),
    engine_store: EngineStore = Depends(get_engine_store),
) -> PydanticResponse[SimpleEmptyBody]:
    """Delete a run by its ID.

    Arguments:
        runId: Run ID pulled from URL.
        run_store: Run storage interface.
        engine_store: ProtocolEngine storage and control.
    """
    try:
        await engine_store.clear()
    except EngineConflictError:
        raise RunNotIdle().as_error(status.HTTP_409_CONFLICT)

    try:
        run_store.remove(run_id=runId)
    except RunNotFoundError as e:
        raise RunNotFound(detail=str(e)).as_error(status.HTTP_404_NOT_FOUND)

    return await PydanticResponse.create(
        content=SimpleEmptyBody.construct(),
        status_code=status.HTTP_200_OK,
    )
async def remove_run ( runId : str , run_store : RunStore = Depends ( get_run_store ) , engine_store : EngineStore = Depends ( get_engine_store ) , ) -> PydanticResponse [ SimpleEmptyBody ] : try : await engine_store . clear ( ) except EngineConflictError : raise RunNotIdle ( ) . as_error ( status . HTTP_409_CONFLICT ) try : run_store . remove ( run_id = runId ) except RunNotFoundError as e : raise RunNotFound ( detail = str ( e ) ) . as_error ( status . HTTP_404_NOT_FOUND ) return await PydanticResponse . create ( content = SimpleEmptyBody . construct ( ) , status_code = status . HTTP_200_OK , )