I'm developing a plugin to detached a document from central and when its done it will be purged as well. I'm struggling writing the code for purge, I'm thinking to call the Revit Purge button from the code. If it is possible, would appreciate the support or maybe share the code for writing the purge command in the API.
Thank you
The Building Coder provides a summary of some purge examples in the discussion of purge and detecting an empty view.