Wills distribute the estate. Once it's distributed, the new owners can do what they want with it.
> Barnes Foundation
"to be honored in perpetuity after his death"
Such things should not be legally binding. What can justify a person controlling their estate a year after death, a century, a millennium? It's absurd.
> Such things should not be legally binding.
They aren't. They never have been, and they never will be, since it's impossible to enforce something forever.
But see also https://en.wikipedia.org/wiki/Rule_against_perpetuities .
Wills are for the living, not the dead. It is a coordination mechanism to reduce conflict between heirs. It obviously doesn't function perfectly, but otherwise every death would result in legal battles, or, as has been the case for most of recorded history, physical violence.
Also note there are significant legal restrictions on wills: https://en.wikipedia.org/wiki/Rule_against_perpetuities
Then why are wills permitted and enforced?
I'd agree that the only way to guarantee something is not published is to destroy it. One need look no further than the Barnes Foundation to see that executors can go astray; but that doesn't make it right.
https://en.wikipedia.org/wiki/Barnes_Foundation