Introduction

In this blog post, we'll cover the Remove and RemoveIf functions in PowerApps. These functions delete records from a data source or collection, but they differ in how they determine which records to remove.

Both functions take:

  1. A data source or collection from which records are to be deleted.

  2. A record reference or condition to determine which records to remove.

Remove Function

The Remove function deletes a specific record from a data source or collection.

Syntax

Remove(DataSourceName, Record)

Example Scenario

We have a collection named EmployeeDetails, which contains 4 employee records. The Remove function can be used to delete a selected record from this collection.

Create Collection

ClearCollect(EmployeeDetails,
    { ID: 101, Name: "Alice", Department: "HR", Location: "New York" },
    { ID: 102, Name: "Bob", Department: "Finance", Location: "London" },
    { ID: 103, Name: "Charlie", Department: "IT", Location: "Sydney" },
    { ID: 104, Name: "Diana", Department: "Marketing", Location: "Toronto" }
)

Now, add a gallery connected to the EmployeeDetails collection.

02-01-2026-10-51-42

Remove Function Example

To remove the selected record from the gallery, add a Delete icon or button inside the gallery.

Set the OnSelect property of the Delete icon or button to:

Remove(EmployeeDetails, ThisItem)
02-01-2026-10-57-13

✅ Explanation:

RemoveIf Function

The RemoveIf function deletes one or more records that match a condition from a data source or collection.

Syntax

RemoveIf(DataSourceName, Condition)

Example

To remove all records where the Department is "IT":

RemoveIf(EmployeeDetails, Department = "IT")

Output:

Key Differences

FeatureRemoveRemoveIf
TargetSpecific recordMultiple records based on condition
SyntaxRequires record referenceRequires condition expression

Conclusion

The Remove and RemoveIf functions are essential for managing data in PowerApps.

These functions help keep your app clean and efficient, especially when working with collections or connected data sources.