Cheat Sheets/Power Apps/Clear
Power Fx function

ClearPower Fx function reference

Empty a collection.

Syntax

powerfx
Clear( Collection )

Examples

powerfx
Clear(colCart)
Now empty
powerfx
Clear(colCart)
powerfx
Clear(colCart); Notify("Cart cleared")

Common mistakes & gotchas

Related Power Fx functions

From Collections & local storage

Used in these tutorials

← Back to the Power Apps (Power Fx) cheat sheet