delete files correctly