Home >>Python Keywords >Python del Keyword
Python del keyword is used to delete the objects present in the program. This del keyword can also be used to delete the variables, lists, or parts of a list, etc.
Here is an example of Python del keyword:
class MyClass:
name = "Jerry"
del MyClass
print(MyClass)
x = "Jerry"
del x
print(x)