Removes part of path,