Generate a Python program to remove a key-value pair in a dictionary.
d = { 'a': 10, 'b': 20, 'c':30 }
def remove_pair(d, key):
 if key in d:
 del d[key]
 return d
 
d = { 'a': 10, 'b': 20, 'c':30 }
remove_pair(d, 'c')