deleteDynamicProperty

deleteDynamicProperty(propertyName: String);

The deleteDynamicProperty method of the Class class deletes the runtime dynamic property with the name specified in the propertyName parameter from a cluster in the receiving class.

If instances of the class or any subclasses exist, you cannot delete an exclusive dynamic property or a Binary or StringUtf8 dynamic property that has a maximum length or a length greater than 540, or a String dynamic property that has a maximum length or a length greater than 539. (See also the JadeDynamicPropertyCluster class deleteSubobjectDynamicProperty method.)

You can delete a runtime dynamic property only if the class in which it is defined is not being used by any other process. If production mode is set, a runtime dynamic property can be deleted in single‑user mode only.

An exception is raised if the runtime dynamic property is not defined in the class.