Warren Buffett's favorite holding time is forever, but when necessary, he's not afraid to break his own rule and sell.

There are, of course, many stocks that the Oracle of Omaha plans to hold on to for life. He has famously promised to never sell a share of Coca-Cola (KO - Get Report) and has had stakes in companies such as Wells Fargo (WFC - Get Report) and American Express (AXP - Get Report) for years.

When Buffett does sell a stock, the success of the transaction is closely tied to the original buy. "Never count on making a good sale. Have the purchase price be so attractive that even a mediocre sale gives good results," he is quoted as saying in the 1995 book Buffett: The Making of an American Capitalist.

And not all of his sales are permanent, either -- or even real. During the 1990s, he omitted his Wells Fargo stake from his public holdings disclosure even though he hadn't sold, and more recently, he did the same with Phillips 66 (PSX - Get Report) .

In the second quarter of 2016, Buffett appears to have done a bit of stock selling, according to his most recent 13F filing, corresponding to June 30. Here are five positions he trimmed during the period.

Be sure to also check out the stocks Buffett has been buying in the most recently reported quarter.


WMT Chart WMT data by YCharts

Buffett cut his stake in Walmart (WMT - Get Report) by about 27% last quarter. As of June 30, he owns 40.2 million shares valued at $2.9 billion.

Walmart operates retail stores in various formats under various banners. Its operations are comprised of three reportable business segments -- Walmart U.S., Walmart International and Sam's Club -- in three categories -- retail, wholesale and others. It has a $228.5 billion market cap and trades at a P/E of 16.19.

Suncor Energy

SU Chart SU data by YCharts

Buffett reduced his stake in Suncor Energy (SU - Get Report) last quarter to 22.3 million shares worth $617.7 million, a roughly 25% reduction from the prior quarter.

Suncor is an integrated energy company. Its operations include developing petroleum resource basin, Canada's Athabasca oil sands. It explores for, acquires, develops, produces and markets crude oil and natural gas in Canada and internationally. Suncor has a $47.2 billion market cap.


DE Chart DE data by YCharts

Deere  (DE - Get Report) is another holding Buffett reduced last quarter. As of June 30, he owns 22 million shares worth $1.8 billion.

Deere is engaged in equipment operations and financial services. It operates in three business segments: agriculture/ turf, construction/forestry and financial services. The company has a $24.6 billion market cap and trades at a P/E of 10.

Charter Communications

CHTR Chart CHTR data by YCharts

Buffett backed away from Charter Communications (CHTR - Get Report) slightly during the second quarter. As of the end of the period, he owns 9.3 million shares valued at $2.1 billion.

Charter is a providers of cable services in the U.S. The company offers entertainment, information and communications solutions to residential and commercial customers. It has a $70.6 billion market cap and trades at a P/E of 14.


VRSN Chart VRSN data by YCharts

Buffett shaved off his position in VeriSign (VRSN - Get Report) by about 30,000 shares last quarter. As of the end of the period, he owns 13 million shares valued at $1.1 billion.

VeriSign is a provider of domain name registry services and Internet security, enabling Internet navigation for many of the world's recognized domain names and providing protection for Web sites and enterprises around the world. It has a market cap of $8.7 billion and trades at a P/E of 26.1.