Skip to main content

Notifications

Community site session details

Community site session details

Session Id : BaClwblxd6e4e/sVRush3b
Power Apps - Building Power Apps
Unanswered

Delete All Selected Item Function

Like (0) ShareShare
ReportReport
Posted on 15 Sep 2022 09:49:33 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:
  • VJR Profile Picture
    7,635 on 16 Sep 2022 at 10:27:22
    Re: Delete All Selected Item Function

    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.

     

  • Virikefe22 Profile Picture
    302 on 15 Sep 2022 at 12:19:27
    Re: Delete All Selected Item Function

    Hi @VJR

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

  • MVP-Phipps Profile Picture
    3,447 Super User 2024 Season 1 on 15 Sep 2022 at 11:47:28
    Re: Delete All Selected Item Function

    Change Gallery3 for the datasource either the collection or dataset.

  • VJR Profile Picture
    7,635 on 15 Sep 2022 at 11:20:22
    Re: Delete All Selected Item Function

    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?

     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 142 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 81

#3
stampcoin Profile Picture

stampcoin 68

Overall leaderboard
Loading started