Python Delete Object Properties


Delete Object Properties

You can delete properties on objects by using the del keyword:

Example

Delete the age property from the p1 object:

del p1.age
Try it Yourself »


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.