Search code examples
c#.netoutlookpst

Compressing an Outlook PST programmatically


This Article is the only resource I can find that says the API for compressing a PST file is not exposed. Can anyone verify this or provide information otherwise?

Thanks


Solution

  • My understanding is that the link you posted is correct. There is no API for compacting the PST.

    Depending on how many items in the PST you have, one option may be to create a new PST and move the items over, then delete the old PST. Granted, that's not an elegant solution by any means, but it's an option.