Hi Manuel,
That’s right, you can’t delete all variables at the moment, you have to keep at least one (you can simply rename one of your variables to --keep-me, for example).
We have already solved this for classes by introducing class trash, but unfortunately it still exists for variables. Please follow this thread for updates:
Although it primarily deals with classes, our internal task refers to both classes (as already mentioned, already fixed) and variables.