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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Delete all records in ...
Power Apps
Unanswered

Delete all records in a Table from within powerapps

(0) ShareShare
ReportReport
Posted on by 294

Hello Community Superheroes,

I want to delete all records of an entity table from within my powerapp. I know I can use the "Remove" function using "ALL" as an argument, but I don't how to use it. Is this the right approach? If not, could you tell me the right one please?

Thanks!

Categories:
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    on at

    Hi @karimabdelrazek :

    Do you want to remove all records of a entity by canvas app?

    Firstly,using the parameter "ALL" in the remove function cannot delete all records.

    The "ALL" parameter is used to delete all copies of a record.

    I think this link will help you a lot:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-remove-removeif#syntax

    Secondly,If you want to delete all records in an entity, I have an alternative.

     

    RemoveIf(yourentity,!IsBlank(theprimarykey))

     

    This formula deletes all records where the primary key is not empty. Because the primary key cannot be empty, all records will be deleted.

    Best Regards,

    Bof

  • karimabdelrazek Profile Picture
    294 on at

    @v-bofeng-msft .Thanks! Just what I was looking for.

  • HansHeintz Profile Picture
    704 on at
    RemoveIf(yourentity,!IsBlank(theprimarykey))

    Does seem subject to delegation issues, so 2000 records max.

  • XylusSand Profile Picture
    10 on at
    RemoveIf(yourentity, true)

    It's not necessary to provide a condition to compare against - true works fine. That being said, it won't bulk delete a large number of records. After a certain point, removeif gives up - maybe this is a time-out, maybe this is a throttling situation, I don't know - but I've tried this many times. I was forced to use the system bulk delete function to be assured of complete success. 

     

    See here:

    Delete bulk records - Power Platform | Microsoft Learn

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard