python remove dict field code example Example 1: how to remove dictionary entry in python del dic[key] Example 2: python remove key from dict my_dict.pop('key', None)