Delete a property from a thing.

While almost all functions on things are also available on Type instances, this one is not. This is because a Type instance has a fixed set of properties and so you are not allowed to delete one of them on a single instance. Use mod_type() instead, to delete the property from all instances if this is what you want.

This function generates a change.




Argument Type Description
property str (required) Name of the property to delete.

Return value

Returns the removed value if successful. A lookup_err() is returned if the property does not exist.

In versions before v0.9.3 the return value of .del(..) used to be nil when successful.


This code shows some return values for del():

.x = 'create and delete this prop';

Return value in JSON format

"create and delete this prop"