You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 3.0.2.post1755+geb5acc4f7
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.