Remove data part from path.