Measure the door, using a tape measure. Mark a line on the door that signifies how far down you need to trim the door, using a pencil.
Lay the bi-fold doors on the floor, balanced on the edge with the edge that goes against the door jamb facing up. Brace the doors with the end of it in a corner.
Hold a plane at a slight angle to the door edge. Grip the plane by the knob toward the plane's front, and the handle toward its rear.
Slide the plane along the door edge toward the middle, working with the door grain. Apply most of the pressure to the knob as you begin a long, smooth stroke, and finish the stroke with pressure on the plane handle. Plane the edge down to the door width you need.
Wrap a sheet of 100-grit sandpaper around a wood block. Sand the door edge smooth, using the sandpaper.