removeProperties

Returns a new Feature with the specified properties removed.

This is a convenience vararg overload of removeProperties for removing properties inline. Property names that don't exist are silently ignored.

Example:

val updated = feature.removeProperties("oldConfig", "deprecatedSetting", "unused")

Return

a new Feature with the properties removed

Parameters

names

the names of properties to remove

See also

for the Collection version


Returns a new Feature with the specified properties removed.

Removes all properties whose names are in the provided collection. Property names that don't exist are silently ignored. This maintains immutability by returning a new instance.

Example:

val propertiesToRemove = setOf("tempConfig", "beta", "experimental")
val updated = feature.removeProperties(propertiesToRemove)

Return

a new Feature with the properties removed

Parameters

names

the collection of property names to remove