In this paper, we study one kind of stochastic recursive optimal control problem for thesystems described by stochastic differential equations with delay (SDDE). In ourframework, not only the dynamics of the systems but also the recursive utility depend onthe past path segment of the state process in a general form. We give the dynamicprogramming principle for this kind of optimal control problems and show that the valuefunction is the viscosity solution of the corresponding infinite dimensionalHamilton-Jacobi-Bellman partial differential equation.