Remove duplicated file and directory.