The best result, if you are looking to minimize file size, would be off-line mode MVStoreTool.compact(), also available as command line utility.
If you are looking for the same in on-line mode (while MVStore is still open), than MVStore.compactFile() may be used.