youtube image
From YouTube: Trimming SharePoint file versions to reduce Storage costs

Description

📺 In this 9-minute developer-focused demo, Kasper Bo Larsen steps through what is SharePoint storage? How is usage calculated? What does storage cost? How do I minimize SharePoint Storage consumption? Proactively - reduce number versions saved from 500 to 50 (Retention policy). Reactively, use scripts – to calculate potential storage reduction and trim files. See code for calculating storage used in site collection and call to DeleteVersions function. Use the PowerShell Remove-PnPFileVersion function.

This community call demo is taken from the Microsoft 365 & Power Platform Development Community call recorded on June 22, 2023.

✨ Demo Presenter
• Kasper Bo Larsen (Fellowmind) | @kasperbolarsen

💬 Community Call Conversation
• aka.ms/June22-Demo2

📖 Supporting materials
• Article - Deleting File Versions to reduce the SharePoint Storage Consumption | https://ms365thinking.blogspot.com/2023/05/deleting-file-versions-to-reduce.html
• Script sample - File Version Trimmer | https://pnp.github.io/script-samples/spo-file-version-trimmer/README.html?tabs=pnpps
• Script sample - Sample on a report showing how much SharePoint Storage you can save by trimming document versions once the site is no longer active | https://pnp.github.io/script-samples/spo-generate-sp-storage-savings-report/README.html?tabs=pnpps
• Documentation - Remove-PnPFileVersion | https://github.com/pnp/powershell/blob/dev/documentation/Remove-PnPFileVersion.md

💡 Learn more about the Microsoft 365 & Power Platform community
• Microsoft 365 & Power Platform Unified Sample gallery - https://aka.ms/community/samples
• Microsoft 365 & Power Platform Community in YouTube - https://aka.ms/community/videos
• Microsoft 365 & Power Platform - http://aka.ms/community/home

Sharing is caring! You are awesome! 🧡