Revert twin axes to default

Following the twin axes example (, I am wondering how one could revert/remove the extra axis later one? Usecase: extra axis is required dynamically.

Removing an item of the p.yaxis list, does not seem to be possible.

I don’t think removing an axis is going to be feasible (no one has ever actually asked for that, no work has been done to make that supported AFAIK). Axes have a visible property you can toggle to hide or show them, or alternatively a second version of the plot with one axis could also be controlled via visible.