removing the target directory