changed dir_install sync to delete