Hi David te Kloese,
I used your code
nodex.DocumentPublishTo = DateTime.MinValue;
nodex.Update();
But the publish to field has set to null. And after that. I used following code
nodex.DocumentPublishTo = DateTime.Now.AddDays(-10);
nodex.Update();
And now the publish to have value. But i still can access the page from front end site.