An era ended yesterday when Piedmont Airlines retired an plane that was kin to the Japanese World War II Zero fighter but made its name in safe domestic flying.

"It was the right airplane at the right time for the right airline," Piedmont spokeswoman Roslyn Chostner said of the YS11 twin-engine propjet, which made its last trip and ended 14 years of service with a top safety record.

The last remaining YS11 was scheduled to fly from Wilmington and Charlotte to Winston-Salem, N.C., officials said. The 58-passenger aircraft will join several other former Piedmont propjets that are for sale. Piedmont officials have not announced a price.

The YS11, known for its distinctive whistling sound, was built in Japan. The leader of the design team was Jiro Horikoshi, the designer of the Mitsubishi Zero fighter of World War II.

Piedmont once had 21 of the YS11s, and more than 90 percent of its 700 pilots flew the planes. The company was the first in the nation to operate the plane in 1968 in scheduled service.

The retirement flight will convert Piedmont to an all-jet airline with a fleet of 43 twin-engine Boeing 737s and 11 three-engine 727s.

Records showed that Piedmont's fleet of YS11s totaled more than 500,000 hours of total flight time without a fatal accident. The plane developed a reputation for low maintenance needs and economical fuel use, officials said.

Piedmont officials said the YS11 was well suited for many of the smaller airports Piedmont once served because they had relatively short runways and few passengers. The YS11 was safe for such airports, and operated at a profit for Piedmont, Chostner said from company headquarters in Winston-Salem, N.C.

But airport runways have become longer to handle jets, Piedmont is serving more distant cities, and passenger volumes have increased. All that, plus today's technology, overtook the YS11, making it no longer the "right" aircraft for Piedmont, officials said.

Piedmont now flies to 42 airports serving 80 cities in 18 states and Washington, D.C. Its jetliners fly about 150,000 miles daily, Chostner said.

Four more 727s and 10 more 737s are scheduled for delivery to Piedmont this year, Chostner said. By 1984, Piedmont expects its 737 fleet to total 62, making it the world's largest operator of that Boeing type.