append delete dir method