Variables can not be cleaned after removed them

I set a series of private variables for temperate use, and when I want to use I find the private variables show up in my layer mode selection.

So I decided to remove them. But the variables and the mode can’t be cleaned, it says ‘deleted mode’. How to clean them up quickly? can’t find an API to clean the bounds either.

截屏2023-07-04 12.09.57