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 / Remove objects from Gi...
Power Apps
Answered

Remove objects from GitHub Repo with PowerPlatform Action

(1) ShareShare
ReportReport
Posted on by 254
Hi, 
I'm not sure if this is the right spot for the question. I'm working on some GitHub Actions to automate CI/CD for my current CRM project. 
So there are some solutions containing a model driven app, entities, roles and so on. I have a pipeline in place which
  • exports the current version unmanged
  • extract the unmanged version and stores it in GitHub (Enterprise Server)
  • exports the same version managed and stores it for deployment purposes
When running SolutionPackager locally I can decide if missing objects are to be removed from previous export. Which is typical intention when 
objects get removed from the solution. Now, when running the pipeline this optin seems to be gone. I use unpack action to extract the solution '
file and push the result to git afterwards https://github.com/microsoft/powerplatform-actions/blob/main/unpack-solution/action.yml 
But today I removed something from my solution but after pipeline finished successfully, the object was still present in git. 

Any idea how to overcome this?
 
'Thanks!
I have the same question (0)
  • Verified answer
    SteRe Profile Picture
    254 on at
    Update: I found an option myself. 
    For everybody interested in this, you can do the following
     
    1. Get local copy
    2. Clear export folder
    3. Extract solution to export folder
    4. Add all objects
    5. Commit changes
    6. Push changes
     
    As git does not compare timestamps in here, but content it recognizes all deleted + recreated files as unchanged. So modifications and additions will be added to your repo and (locally) removed files will be removed from repo. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 514

#2
WarrenBelz Profile Picture

WarrenBelz 419 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 295

Last 30 days Overall leaderboard