Can I delete these SQL Server files to clear up disk space?

All we need is an easy explanation of the problem, so here it is.

We’re looking for opportunities to clear up some disk space on a Windows 2019 server. We’re running SQL Server on this instance as well. I see that I may be able to free up 10GB if we clean out the following directories. My question is, is it safe to delete these files without having a negative impact on SQL Server?

  • C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Log\*

  • C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Update Cache\*

  • C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\*

  • C:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Update Cache\*

Also, if it’s not already obvious, I’m not familiar with SQL Server management. When I search "SQL Server" from the Microsoft OS start menu, I see 3 folders that show up in the search results. They are for Microsoft SQL Server 2008, Microsoft SQL Server 2014, Microsoft SQL Server 2016 and Microsoft SQL Server Tools 18.

Could we potentially free up space by deleting the directories for 2008 and 2014?

Thank you.

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

According to docs.microsoft.com you should not delete the Update Cache folder. As for the Log folder I’d say that you can delete it as long as you do not need the logs stored there.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply