Modified deletePreference to only reset the destdir