If the variable my_dict is global, you cannot:
my_dict
my_dict = {}
which simply create a new link in the local area.
Also, I found it disgusting to use the global , so how can I remove a dict using its methods?
global
Use clear() method?
clear()
Documentation - (docs.python.org)
do you mean like .clear() ?
.clear()
my_dict.clear()
my_dict.clear ()
You can also check this question: Difference between dict.clear () and destination {} in Python