Automate File & Folder Deletion in Power Automate with Graph API vs SharePoint REST

Опубликовано: 03 Октябрь 2025
на канале: DamoBird365
4,382
71

Stop struggling with messy SharePoint libraries—learn how to automate file and folder cleanup using Power Automate, Microsoft Graph API, and SharePoint REST API! This step-by-step tutorial shows you exactly how to build dynamic, cloud-based workflows that keep your SharePoint sites organized, all without writing a single line of code.

You'll see how to harness the full power of the Power Platform and workflow automation to streamline document management. Whether you’re a Power Apps enthusiast, IT pro, or citizen developer, you’ll discover practical tips for deleting files and folders dynamically (even in complex folder structures), using both Graph API and SharePoint API. No more manual cleanup—save time, reduce errors, and boost your digital transformation efforts.

What You’ll Learn:
✔️ Build a robust Power Automate flow for deleting SharePoint files/folders via Graph API and REST API
✔️ Automate dynamic retrieval of Site ID, Drive ID, and Item ID—even with multiple document libraries
✔️ Filter and target specific files or folders using variables and expressions in low-code cloud flows
✔️ Troubleshoot common pitfalls and make your automation repeatable across your organization

Timestamps:
00:00 – Instantly automate SharePoint file and folder deletion with Power Automate
00:39 – How Graph API unlocks SharePoint automation
04:19 – Key differences: Graph API vs SharePoint REST API
06:00 – Designing a dynamic Power Automate flow from scratch
07:48 – Step 1: Get your SharePoint Site ID—the automation gateway
10:42 – Step 2: Retrieve Drive ID for precise document access
13:42 – Step 3: Filter for the right Document Library Drive ID
16:34 – Step 4: Acquire Item ID for targeted file/folder actions
20:00 – Step 5: Effortlessly delete files and folders—see it in action

#PowerAutomate #PowerPlatform #workflowautomation #SharePoint #LowCode

Ready to supercharge your SharePoint management? Drop your questions or automation ideas in the comments—let’s solve your workflow challenges together! Check out the blog for more Power Platform tips and resources.

SEO Keywords: Power Platform, Power Automate, SharePoint, workflow automation, low-code, cloud flows, digital transformation, citizen development, Graph API, REST API, business process automation

Additional Links:
🔗 https://damobird365.com/delete-a-file... Learn how to delete SharePoint files and folders using the Graph API.

🫠 About me:
👋 Hi, I'm Damien Bird — Power Platform Cloud Solution Architect at Microsoft ☁️
🧠 Former Forum Super User (2021/22) & Business Applications MVP (2022)
🎤 Speaker at conferences across Europe, the US, and local UK user groups
💡 Passionate about sharing knowledge, solving problems, and empowering the community with the Power Platform!

📚 Explore more:
🔗 Blog: https://DamoBird365.com
🎥 Video & Quiz CPD: https://DamoBird365.com/YouTube
🎓 Join the Community: https://DamoBird365.Teachable.com/p/D...
💖 Support the Channel:    / @damobird365  
☕ Buy Me a Coffee: https://BuyMeACoffee.com/DamoBird365
💼 LinkedIn:   / damobird365  
🐦 Twitter: https://x.com/DamoBird365
🌐 Bluesky: https://bsky.app/profile/DamoBird365....
📜 Feedback or Request: https://forms.office.com/e/WAV1iF2Wis