Update ELement properties and Delete Unnecessary file