web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Remove one item from a...
Power Apps
Answered

Remove one item from a collection without using ClearCollect to rebuild it

(0) ShareShare
ReportReport
Posted on by 48

For performance reasons, I do not want to regenerate a collection each time I add or remove one item from it. The collection could be quite large (potentially several thousands records), which requires some work to complete. I can easily add a new record to the existing collection with Collect(). 

 

Is it possible to remove a single record from a collection when that record has been deleted from the underlying table, and do so without having to recreate the entire collection? If so, can you point me to existing references to do it?

 

Thanks in advance.



Categories:
  • Verified answer
    OdinDelToro Profile Picture
    407 on at

    Hello gpgeorge,

     

    You can remove selected items in a collection based on the filter arguments you specify by using RemoveIf function. The official documentation about it is here Remove and RemoveIf functions - Power Platform | Microsoft Learn

     

    Hope this helps clarify the doubt, let me know in case you're still facing an issue within it.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    gpgeorge Profile Picture
    48 on at

    Thank You. It is exactly the method I needed and so straightforward! 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard