clearing list while appending to list in pything code example
Example: deleting a list in python
# deletes whole list
thislist = ["apple", "banana", "cherry"]
del thislist
# deletes whole list
thislist = ["apple", "banana", "cherry"]
del thislist