Completely destroying a class with models

That’s a fine solution, and one which we usually employ.

Note that it’s usually not even necessary to use del. You shouldn’t confuse the Python del operator with the C++ delete operator; beginners frequently assume they are similar, but in fact they are completely different. Python’s del operator removes the local variable from the scope, but has no direct effect on the instance it refers to. But a local variable will go out of scope when the current function finishes anyway, so it’s usually unnecessary.

David