I create many object then I store in a list. But I want to delete them after some time because I create news one and don\'t want my memory goes high (in my case, it jumps to
To delete all objects in a list, you can directly write list = []
list = []
Here is example:
>>> a = [1, 2, 3] >>> a [1, 2, 3] >>> a = [] >>> a []