Python
Delete Object
❮ Python Glossary
Delete Objects
You can delete objects by using the
del
keyword:
Example
Delete the p1 object:
del p1
Try it Yourself »
Related Pages
Python Syntax Tutorial
Class
Create Class
The Class __init__() Function
Object Methods
self
Modify Object Properties
Delete Object Properties
Class pass Statement
❮ Python Glossary
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.