Remove public part of path.