DeleteVersion
Purpose
DeleteVersion deletes a specific version of an object from the MDS Repository database. The user must have delete permission on the version to be deleted. If the current version is deleted, then the immediately preceding version will become the current version. Deleting the only version of an object is the same as issuing Delete().
Requirements
The internal object id must be set in the object and it must be for the version to be deleted.
Syntax
HRESULT DeleteVersion(void);