#x will be deleted
print("x")
>> list = ["Facebook", "Instagram", "Snapchat", "Twitter", "TikTok"]
>> list.remove("Snapchat")
>> print(list)
["Facebook", "Instagram", "Twitter", "TikTok"]
"""
Since foo is a global, you can delete it from the global definitions:
"""
def delete_func(func):
del globals()[func.func_name]