Python Delete Object Properties
Delete Object Properties
You can delete properties on objects by using the
del
keyword:
ExampleGet your own Python Server
Delete the age property from the p1 object:
del p1.age
Try it Yourself »