FORT WORTH, Texas — American Airlines is stopping flights to Venezuela because of safety concerns after the pilots' union told its members to refuse to work the flights.

American was the last major U.S. carrier to fly to the troubled country. It flew daily to Caracas and Maracaibo from Miami.

The airline said Friday it temporarily stopped the flights and won't operate to countries it doesn't consider safe.

Late Thursday night, the president of the Allied Pilots Association directed pilots to refuse Venezuela assignments.

Daniel Carey noted that the State Department warns about crime and detention of American citizens. The U.S. pulled its last diplomats out of the country Thursday.

Other U.S. and many foreign carriers have stopped flying to Venezuela as the country's economic and political situation has deteriorated in recent years.