Added delete files logic.