Showing results for 
Search instead for 
Did you mean: 
Not applicable

Delete Sharepoint Item from PowerApps

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!

Super User
Super User

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)


Super User
Super User

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.

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

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

@powerapps890 ,

If you want all but the last record

   ID < 


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.

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,139)