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 / Issue with bulk deleti...
Power Apps
Answered

Issue with bulk deleting items in SharePoint list.

(0) ShareShare
ReportReport
Posted on by 648

Issue with bulk deleting items in SharePoint list.

The loop stops and ceases to function properly.

I have a checkbox that is checked, and I want to delete the rows that are checked. However, it doesn't work in my logic. Is there anyone who can see the error? The button is located outside the gallery.

ForAll(
Gallery5.AllItems;
If(
CheckboxCanvas1.Value = true;
Remove(Survey1; Gallery5.Selected)
)
)

Categories:
  • Verified answer
    CU18061035-1 Profile Picture
    Microsoft Employee on at

    hey @dalacarelia_196 

     

    can you try this:

    ForAll(
     Gallery5.AllItems,
     If(
     ThisRecord.CheckboxCanvas1.Value, // Assuming each row has its own checkbox named appropriately
     Remove(Survey1, ThisRecord)
     )
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • dalacarelia_196 Profile Picture
    648 on at

    Thank you, now I got a correction to think in the right direction. I am very grateful for your help, sir.

    ForAll(
    Gallery5.AllItems;
    If(
    CheckboxCanvas1.Value;
    Remove(Survey1;ThisRecord)
    )
    )

     

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard