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 Sharepoint Item...
Power Apps
Unanswered

Delete Sharepoint Item from PowerApps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I created a button where I have plans to delete the last item in the sharepoint list using Microsoft Flow. How can I do this? Pls specified step by step using screenshot thanks!

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,440 Most Valuable Professional on at

    Hi @Anonymous ,

    The RemoveIf function will do the job in PowerApps - just needs a formula to identify the record.

    You don't need a Flow to do this (or is this a Flow question)

     

  • mdevaney Profile Picture
    29,991 Moderator on at
    @Anonymous
    Using Flow to delete the last item in a list is not necessary. It can be done in PowerApps without the use of Flow.

    Put this code in the OnSelect property of your button.

    Remove(your_datasource_name, First(Sort(your_datasource_name, ID, Descending))

    —-
    Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.
  • WarrenBelz Profile Picture
    156,440 Most Valuable Professional on at

    Please accept @mdevaney 's answer - it is the direction I was heading and is correct,

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Is there a way to modify this so it will delete all old ones and not just the last. 

  • WarrenBelz Profile Picture
    156,440 Most Valuable Professional on at

    @Anonymous ,

    If you want all but the last record

    RemoveIf(
     YourListName,
     ID < 
     First(
     Sort(
     YourListName,
     ID,
     Descending
     )
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Weppes Profile Picture
    53 on at

    Maybe a bit late to the party - but this code will remove the first entry where the search-query holds true:

    Remove(Source; First(Search(Source;Gallery.Selected.UID;"UID")))

    Where "UID" represents the unique identifier of this column.

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard