"i don't see any way to do it, because /usr/doc/packaging-manual/packaging.html/ch-maintainerscripts.html says that``old-prerm upgrade new-version""is the absolute first command to be run during a package upgrade."
if the rm -rf is in the old-postrm, the preinst of the new package can whipe it out or something.