parameters: (
      runId: str,
      run_store: RunStore = Depends(get_run_store),
      engine_store: EngineStore = Depends(get_engine_store),
  )
return_statement: return await PydanticResponse.create(
          content=SimpleEmptyBody.construct(),
          status_code=status.HTTP_200_OK,
      )
docstring: Delete a run by its ID.
  
      Arguments:
          runId: Run ID pulled from URL.
          run_store: Run storage interface.
          engine_store: ProtocolEngine storage and control.
docstring_summary: Delete a run by its ID.
docstring_tokens: Delete a run by its ID .
function: 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,
      )
function_tokens: 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 , )