setClear

Removes all elements from a set and returns the same set.

setClear(set) → returns any

Member Function Syntax

mySet.clear()

This function requires Adobe ColdFusion 2025.0.8 and up.  Not supported on Lucee, etc.

Argument Reference

set any
Required

The set.

Links more information about setClear

Examples
Sample code invoking the setClear function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub