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 / Deleting a row item in...
Power Apps
Answered

Deleting a row item in a gallery

(0) ShareShare
ReportReport
Posted on by 20

Hello all, new here to Power aps, would be extremely grateful if someone was able to help with this.

 

I am trying to delete a row from a  gallery i have which includes 365 users but not sure what i am doing wrong?

 

Please see image below:

 

Simon93_0-1665073088092.png

 

Any guidance is much appreciated

Categories:
I have the same question (0)
  • SebS Profile Picture
    4,867 Super User 2026 Season 2 on at

    Hi,

     

    try to add to icon OnSelect property 

     

    Remove(SharepointListName, Gallery.Selected);

     

    It should do the trick don't forget to replace the names with Your List Name and gallery Name

     

    Gallery is only a container to display data from SharePoint or other data source so You need manipulate data in data Source what you did in your example You trying to remove something from gallery what will not work You need to target data source what is probably SharePoint in your scenario

     

    Regards

     

  • Simon93 Profile Picture
    20 on at

    Hi, thanks for the quick reply, so i pulled my data by connecting to Office365users but i don't actually have a SharePoint list, would that still work?

  • Verified answer
    SebS Profile Picture
    4,867 Super User 2026 Season 2 on at

    You, will not be able to remove User from O365 using this approach.

    I think You can remove User using Power Automate means this task will be much more complex also You will need to have Azure Admin authentication to manipulate Users that way.

     

    Think if anyone could just remove a User like that how much damage potentially could happen

     

  • Simon93 Profile Picture
    20 on at

    Thanks for your help makes sense, i will pull my data in from a SP list  !

  • Feiteira Profile Picture
    199 on at

    Hi there @Simon93,

     

    @SebS reply is correct but in you case, I don't think there is a way to delete users from Office (users are created in Active Directory) at least directly from the PowerApp.

     

    However you could try to create a Power Automate to do it, triggered in the app.

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

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard