What is the code for deleting a property?

I am going to store some properties, and recall them later, then delete the properties from the container,

how would I go about deleting a property?

thanks

Though generally I don’t understand why you would do this, you can use the del keyword


del own['some_prop']

Most of the time you shouldn’t need to do this. Especially avoid using checks to see if a property exists when deleting them later on, that just gets messy.

a item slot is going to grab all properties out of a object, and then recall a ‘base’ version of the object, and set all properties,

then it will clean the properties out of the slot,

Store=

for properties in game object -> create properties in slot -> end object used to populate slot

recall = add blank copy of object -> add properties to object -> delete properties from slot.