SharePoint is a document management and collaboration platform. There may be times and Instances where you would need to check for folders that have no files in them. One approach is to manually open each folder in a document library. This approach might suffice if you have just a handful of folders. But what if you have more than 100 folders? Checking each one of them is definitely going to be time consuming.
SharePoint has something called as views which control and determine how you would like your files or folders to be represented in the Document Library. For Instance you could have a view which shows only files that were modified in the past 15 days. Or you could show files that were created yesterday. The filtering criteria gives one a lot of options to play around with.
As one knows a document has a certain set of properties associated with it. Like Creation Date, Modified Date, Author etc. There is one property that would help in getting us the list of folders that are empty. The property is called Item Child Count. Item Child count displays the number of files in a folder. In order to achieve our goal, we would have to create a view that displays only folders whose Item Child Count=0.
Follow these steps on creating a view and setting the value of Item Child Count.
- Go to your Document Library.
- Then goto your Library Settings.
- Scroll Down and Click on Create view .
- On the View Type, select Standard View.
- Scroll down to the Filter Section
- Under “Show the Items when column”, choose the value Item Child Count.
- Set the value equal to 0.
- Scroll Down and click OK.
This would create a view that displays folders which are empty.