Wet and dry foams are prevalent in many industries, ranging from the food processing and commercial cosmetic sectors to industries such as chemical and oil-refining. Uncontrolled foaming results in product losses, equipment downtime or damage and cleanup costs. To speed up defoaming or enable anti-foaming, liquid oil or hydrophobic particles are usually added. However, such additives may need to be later separated and removed for environmental reasons and product quality. Here, we show that passive defoaming or active anti-foaming is possible simply by the interaction of foam with chemically or morphologically modified surfaces, of which the superamphiphobic variant exhibits superior performance. They significantly improve retraction of highly stable wet foams and prevention of growing dry foams, as quantified for beer and aqueous soap solution as model systems. Microscopic imaging reveals that amphiphobic nano-protrusions directly destabilize contacting foam bubbles, which can favorably vent through air gaps warranted by a Cassie wetting state. This mode of interfacial destabilization offers untapped potential for developing efficient, low-power and sustainable foam and froth management.