How to get back database space

Msdc 271 Reputation points
2021-04-08T12:49:59.293+00:00

Hello,

I recently deleted a Document library that held around 300k documents (50GB). The database size has not changed at all and was wondering what exactly I need to do to get that 50GB back available for that content database. I was going to do the shrink database task but was nervous about doing that on a production server database.

Thanks In Advance For Any Help

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,422 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
3,064 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. sadomovalex 3,636 Reputation points
    2021-04-08T15:19:21.91+00:00

    yes, shrink should help with that. It is better to do it during service break: announce that site won't be available some time, then confiugre temporary redirect to service break page (if you don't have such possibility you may just stop Sharepoint site in IIS so users won't be able to do anything there during service break), perform db shrink and then remove service break redirection/start IIS site.


  2. Elsie Lu_MSFT 9,801 Reputation points
    2021-04-09T06:37:54.887+00:00

    Hi @Msdc ,

    I found an official article about Shrinking database you could have a look. And if you are nervous about the task itself, you could post a new post with SQL server tag to ask for more information about shrinking the database.

    Here are some official articles about content limit of different versions of SharePoint Server you could take a look:
    Software boundaries and limits for SharePoint 2013
    Software boundaries and limits for SharePoint Servers 2016 and 2019


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.