Power Fx function
Remove — Power Fx function reference
Delete a specific record.
Syntax
powerfx
Remove( DataSource, Record [, Record2, ... ] [, RemoveFlags.All ] )
Examples
powerfx
Remove(Tasks, galTasks.Selected)
→ Record deleted
powerfx
Remove(Tasks, galTasks.Selected)
powerfx
ForAll(colSelectedRows, Remove(Tasks, ThisRecord))
Common mistakes & gotchas
- The Record argument needs enough of the source record — particularly its key — to identify the row; a record built only from displayed columns can fail to match.
- Remove is irreversible against live data sources with no built-in undo — pair it with a confirmation step before wiring it to a button.
Related Power Fx functions
From Creating & changing records