Harvest winter squash when the fruits are their mature color (buff, green, blue, or orange), and the vines have died back. The rind should be hard to scratch or dent with your fingernail.
Related: How Long Will Green Beans Continue to Grow and Produce on the Vine? When stored in a cool, dry place, delicata ...