How do I remove PageLayout attribute. (i.e Set PageLayout attribute to null)?

Q: How do I remove PageLayout attribute. (i.e Set PageLayout attribute
to null)?
---
A:
You could use the following lines:
Obj prefs = doc.GetPDFViewPrefs().GetSDFObj();
if (prefs != null) prefs.Erase("PageLayout");