At first, I couldn't set the scatters on the candle chart.
The candlestick chart disappeared when the scatter was set.
Default axes were used for the scatter.
I tried setting the axis for the scatter separately and the candlestick chart stopped disappearing.

Now, when I delete the scatter, the axes remain. Is it possible to programmatically delete them.

Below I attach a GIF file for clarity.
https://gifyu.com/image/6Y1R

I asked the same question on stackoverflow.com. https://stackoverflow.com/questions/...re-not-deleted
The code is in Python(Pyqt5), but I can probably understand the code in C++.