delete all keys in dictionary python code example Example: remove all elements from dictionary python dict_name.clear()