remove uri parts from id