To reduce the size of a dynamically expanding virtual hard disk by removing unused space from the .vhd file.