refactoring vhd deletion