matplotlib.pyplot.
delaxes
Remove the given Axes ax from the current figure. If ax is None, the current axes is removed. A KeyError is raised if the axes doesn’t exist.
Axes