cfdm.Count.del_property¶
-
Count.
del_property
(prop, default=ValueError())[source]¶ Remove a property.
New in version (cfdm): 1.7.0
See also
clear_properties
,get_property
,has_property
,properties
,set_property
- Parameters
- Returns
The removed property value.
Examples
>>> f = cfdm.Count() >>> f.set_property('project', 'CMIP7') >>> f.has_property('project') True >>> f.get_property('project') 'CMIP7' >>> f.del_property('project') 'CMIP7' >>> f.has_property('project') False >>> print(f.del_property('project', None)) None >>> print(f.get_property('project', None)) None