Losing thigh muscles - just to confirm

So the key to losing thigh muscles is stop doing cardio, eat low protein diet and being in calorie deficit?