It may be tempting to think that for fruit with a peel, simply removing and discarding the peel may be enough to protect you. In the case of a firm fruit like a pineapple, it can indeed be treated as a “yellow flag” food, carefully cutting away the affected area.
Fruits with a softer peel like oranges or bananas should be treated as “red flag” foods and discarded—underneath the visible mold, it may have penetrated the peel to the flesh of the fruit inside. In the case of an avocado, while the skin is quite tough mold can still get underneath and infect the fruit inside. Play it safe and discard it.