matplotlib.pyplot.
delaxes
Remove the Axes ax (defaulting to the current axes) from its figure.
Axes
A KeyError is raised if the axes doesn't exist.