Deleting Items from a Dictionary : Delete « Dictionary « Python Tutorial






d = {"server":"A", "database":"master"}    
print d 
del d['server']                                 
print d 
d.clear()                                      
print d








8.7.Delete
8.7.1.Deleting Items from a Dictionary
8.7.2.Creating, accessing and modifying a dictionary.