removing duplicate directory and files