Home / Python Dictionary / How to Empty Dictionary in Python In this example we will show how to empty the dictionary using the clear() method in Python. Source Code mydict = { 'name': 'Steven', 'age': 24, 'ID': 123456 } mydict.clear() print(mydict) Output: {}