Share via

How do you reduce SharePoint storage use?

Anonymous
2023-06-20T23:59:42+00:00

Hi Guys,

We've hit our SharePoint storage limit and, rather than paying for more storage we don't need, have deleted over 100GB of files from our SharePoint sites. We've also cleared the recycle bin.

However, our storage use has not reduced and now SharePoint isn't letting us save files, which is a disaster for our business.

I've searched online and can see that there's multiple recycle bins but cannot for the life of me find them in the SharePoint admin centre.

I also think SharePoint has created a huge number of versions of files that we don't want, but I cannot work out how to stop it doing this or delete them en masse.

It should be very easy to turn off automatic versioning, and to delete files to free up storage capacity.

Does anyone else have this problem and has found a workaround?

Thanks,

Michael

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2023-06-21T06:35:16+00:00

Dear Michael,

Thanks for your updates and letting us know the current situation in your environment.

Here are the answers to your questions.

  1. After you delete the files from the site library manually, the file will be first kept in the first-level recycle bin. If someone deletes them from the first-level recycle bin, the deleted ones will be transferred to the second-level recycle bin and be kept for the remainder of the 93 days.

SharePoint Online retains backups of all content for 14 additional days beyond actual deletion. If content can't be restored via the Recycle Bin or Files Restore, an administrator can contact Microsoft Support to request a restore any time inside the 14-day window.

Here is the detailed information for your reference.

Restore deleted items from the site collection recycle bin  - Microsoft Support

The first-level recycle bin's URL looks like https://contoso.sharepoint.com/sites/sitename/\_layouts/15/AdminRecycleBin.aspx?view=5 and you can access the second-level recycle bin via the bottom link as the following screenshot shows.

Image

  1. I understand that you want to disable version history via UI and it will be more convenient. However, I'm afraid that there is no out-of-the-box option doing that currently. The only way is to use SharePoint Online PnP commands. You can do that with other SharePoint Online PowerShell ways such

as SharePoint Online CSOM. But the PnP commands are short and easier in my opinion.

As out product developers are willing to hear users' suggestions and feedback, I kindly suggest you submit your feedback on the Feedback platform to let them know your requirements for product improvements.

You may wait some time to access it based on the network environments.

After you access the link, you may see the following and select the category to submit your feedback.

Image

Moreover, based on your description, you may want a solution to automatically purge some old files based on some rules to reduce the site storage.

Given the situation, I recommend you go to the Compliance admin center to create and deploy the retention policies. You can combine the retention label with the retention policy for users to avoid any mistaken deletion.

For your reference: Learn about retention policies & labels to retain or delete - Microsoft Purview (compliance) | Microsoft Learn

Image

Microsoft 365 guidance for security & compliance - Service Descriptions | Microsoft Learn

Image

Thanks for your understanding and have a nice day!

Sincerely

Cliff | Microsoft Community Moderator

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-06-21T04:36:13+00:00

    Hi Cliff,

    I appreciate the response, but I am our SharePoint site administrator and an engineer, and even I'm quite overwhelmed by your instructions. I certainly didn't think I'd need PnP commands to delete files and change key settings which determine how much storage we need.

    In plain English, our organization doesn't need more than ~1TB of storage, but to ensure we don't exceed this limit we're going to cull old files regularly and turn off and version history settings which are causing our storage use to blow out.

    So, put simply:

    1. Where do I find the second-level recycle bin in SharePoint?
    2. How can I turn off version history via a UI without code?

    Thanks in advance.

    Michael.

    P.S. I think a lot of small businesses using SharePoint will expect this to be simple and easy to do, as storage is expensive and most will want to limit usage rather than paying to store old files and versions they don't need.

    Was this answer helpful?

    5 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-06-22T00:50:48+00:00

    Dear Michael,

    Thanks for your updates and kindness.

    I'm glad to hear that the information above helps you.

    Welcome to post a new thread on our forum at your convenience if you encounter any issues in your environment.

    Have a nice day!

    Sincerely

    Cliff | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-06-21T11:08:23+00:00

    Thanks for your detailed and helpful response Cliff, it's much appreciated.

    The link to the second stage recycle bin was the key to us freeing up over 300GB of storage.

    I will look into the SharePoint Online PnP commands you've provided.

    Thanks again.

    Michael

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2023-06-21T04:21:47+00:00

    Dear Michael,

    Welcome to the forum here.

    From the information, it seems that you set the site storage limit in your environment. As the site storage is calculated based on the license you bought mentioned in SharePoint limits - Service Descriptions | Microsoft Learn, you may check whether you need to buy extra storage at your side. If no and if you are the administrator, you can adjust the site storage via the steps in Manage site storage limits in SharePoint in Microsoft 365 - SharePoint in Microsoft 365 | Microsoft Learn to move forward.

    About the issue that you can't reduce the site storage, I'd like you to first check whether you have deleted the files from the sites from the first-level recycle bin and the second-level recycle bin. Some files may be deleted with fail because of some reasons such as there are some label policies set on the site library.

    Generally, to turn off the version history and bulk-remove files, you can consider using SharePoint Online Management Shell. You may need to let the administrator run them.

    For example, if you want to disable the version history on a site library, you can run the SharePoint Online PnP commands in SharePoint Online Management Shell as follows.

    Connect-SPOService -Url https://contoso-admin.sharepoint.com -Credential ******@contoso.onmicrosoft.com

    Connect-PnPOnline -Url "https://contoso.sharepoint.com/sites/sitename" -Credential (Get-Credential)

    $SiteURL="https://contoso.sharepoint.com/sites/sitename"

    $ListName = "libraryname"

    Set-PnPList -Identity $ListName -EnableVersioning $False

    If you want to delete all files in a site library and remove them from the first level recycle bin and the second level recycle bin, you can run the commands as follows.

    $SiteURL="https://contoso.sharepoint.com/sites/sitename"

    $ListName = "libraryname"

    Get-PnPList -Identity $ListName | Get-PnPListItem -PageSize 100 -ScriptBlock {

    Param($items) Invoke-PnPQuery } | ForEach-Object { $_.Recycle() | Out-Null

    }

    While( (Get-PnPRecycleBinItem -RowLimit 500) -ne $null)

    {

    Get-PnPRecycleBinItem -RowLimit 500 | Clear-PnPRecycleBinItem -Force

    }

    Thanks for your effort and time!

    Sincerely

    Cliff | Microsoft Community Moderator

    Was this answer helpful?

    0 comments No comments