You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 3.0.2.post2287+g4f76f045a
matplotlib
Fork me on GitHub

matplotlib.pyplot.delaxes

matplotlib.pyplot.delaxes(ax=None)[source]

Remove the Axes ax (defaulting to the current axes) from its figure.

A KeyError is raised if the axes doesn't exist.