PowerAutomate - Get all empty folders from SharePoint library and delete them
Channel: Markus Schiller
Date: 2022-09-22

EDIT: I have uploaded a new and better version of this solution: https://youtu.be/hIUb4mTPEmw

How to get all empty folders from a SharePoint library and delete them.

Here's the video to the previous video, where I'll go into detail how to get all empty folders from a SharePoint list: https://www.youtube.com/watch?v=rqhyeO9uUpg 

Here's the filter query for you to copy: FSObjType eq 1

00:00 Intro
00:24 Create folders and documents to test
02:00 Previous flow description
03:05 Test previous flow
03:38 Get table id
03:55 Edit flow and add delete function
05:30 Test new flow