Rafael Nadal after the Spaniard was pictured with the Italian after hitting with him last week in the lead-up to the tournament.
The withdrawal of Berrettini, who reached the final at Wimbledon last year, was confirmed on Tuesday morning. In a statement, the Italian said: "I am heartbroken to announce that I need to withdraw from @wimbledon due to a positive COVID-19 test result.
I have had flu symptoms and been isolating the last few days. Despite symptoms not being severe, I decided it was important to take another test this morning to protect the health and safety of my fellow competitors and everyone else involved in the tournament. "I have no words to describe the extreme disappointment I feel.