Uncarved pumpkins will generally decay at a slower rate than those that get emptied out and carved. Still, they won't last forever. Bleach and other household cleaning products can be used to keep pumpkins from rotting.