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 / Delete All Selected It...
Power Apps
Unanswered

Delete All Selected Item Function

(0) ShareShare
ReportReport
Posted on by 302

Hello,

I have this Checkbox to delete all item from gallery and here's the code I applied:

Remove('NSD PROCESS MANUFACTURING - DUMPING',Gallery3_5.Selected)

But this keeps deleting items one-by-one instead of all the items selected.

Any suggestion on how to delete all selected items?

Virikefe22_0-1663235248145.png

 

Categories:
I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @Virikefe22 

     

    Because it is mentioned Gallery3_5.Selected it will delete only the one selected item of the Gallery.

    How does your gallery look like? Do you have a checkbox on each data card of the gallery?

     

  • MVP-Phipps Profile Picture
    3,521 Super User 2024 Season 1 on at

    Change Gallery3 for the datasource either the collection or dataset.

  • Virikefe22 Profile Picture
    302 on at

    Hi @VJR

    Yes, I have a checkbox on each datacard of the gallery.

  • VJR Profile Picture
    7,635 on at

    Hi @Virikefe22 

    If you have to remove all records regardless of any condition then use the All parameter of the Remove function

    https://docs.microsoft.com/en-us/power-platform/power-fx/reference/function-remove-removeif

     

    VJR_0-1663323965545.png

     

    But if you have a condition then use the RemoveIf function mentioned in the same above link.

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard