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 / SharePoint - Remove If...
Power Apps
Unanswered

SharePoint - Remove If or Remove to delete all items in gallery which is having morethan 30k records

(0) ShareShare
ReportReport
Posted on by 29

Hello, 

I would like to perform an action where i need to delete all items in a gallery and re upload the data again back to data source where i am using SharePoint list.

If my item ID's are below 2000, deletion was working fine. but if my item ID's are above 2000, items are not getting deleted.

 

I have used below formulas but no use. Any suggessions to write a delete records.

 

Formulas : 

 

ForAll(GlryDelete.AllItems,RemoveIf(Filter(CPC_Base1,ID = DltID.Text),ID = DltID.Text))

ForAll(ColFilprj,Remove(CPC_Base1,Filter(CPC_Base1,ID=First(ColFilprj).ID)))

RemoveIf(Filter(CPC_Base1,PRName = SelProjectName),PRName = SelProjectName);

 

 

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @VijayDirisala 

    You are running into a delegation issue.  RemoveIf() is not delegatable.  Unfortunately, ID's in SharePoint are only partially delegatable (only = is delegatable in SharePoint).  You will need to pre-filter your list if possible down to less than 2k items or else use one of the suggestions by @WarrenBelz  in his blog here:   https://www.practicalpowerapps.com/delegation/power-apps-delegation-sharepoint/ 

  • VijayDirisala Profile Picture
    29 on at

    Thank you for looking on it. My Actual requirement is to delete records based on selected text from SharePoint field(Items available in Gallery) and re upload the fresh data.

    I can able to get the ID number here in Gallery with Filters. but Deletion is not working because of Deligation.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard