What is the $WINDOWS.~BT folder?

119

27

There is a folder named $WINDOWS.~BT on the root of my C:\ drive. It is a hidden folder and is 75 MB in size.

What is its purpose? Is it safe to delete it?

Chin

Posted 2015-03-05T22:11:43.497

Reputation: 6 937

1Some files from that folder are even being executed by Windows, e.g. "Modern Setup Host" (C:$Windows.~BT\Sources\SetupHost.exe) which tries to establish an Internet connection. – Jack Miller – 2015-08-28T06:07:52.347

This is relatively funny: ➝ http://gizmodo.com/woman-wins-10-000-from-microsoft-after-unwanted-window-1782666146

– Frank Nocke – 2016-06-28T05:45:20.340

2Mine is 4.7GB ^^U – daVe – 2016-09-25T22:58:42.940

I have this too. It showed after microsoft techs got into a remote session to fix some driver problems caused by Windows Update. This and a folder ESD were created around the time they were in a remote session on my machine. Of course the techs didnt fix anything and broke my video card drivers. – Ungeheuer – 2016-12-17T05:11:31.607

Answers

83

This seems to be Windows update logs & files.

It includes files to upgrade Windows, and also, once you do upgrade, the old OS goes into that folder

It should be perfectly safe to delete it, as long as you don't want to upgrade or downgrade Windows.

However, you can't do it the normal way.

Instead,

a) Press Windows key + R

b) Type: %windir%\system32\cleanmgr.exe

c) Hit Enter on your keyboard

Edit: This method seems to only delete some things in this folder, some may be left over. See the other answer for a more complete removal method, though that isn't perfect, either. Additionally, this may help: How to delete trustedinstaller files on Windows 8

Sources:

Quelklef

Posted 2015-03-05T22:11:43.497

Reputation: 578

9You should edit your answer to tell people that the windows 10 upgrade files are placed in this folder so you can upgrade from 7/8.1 -> 10. So deleting it will cause issues (or a re-download) of the Windows 10 upgrade files. – John – 2015-07-29T19:54:43.607

2

...and for those of us, who want to keep avoiding Windows 10, follow here: https://superuser.com/questions/922068/how-to-disable-the-get-windows-10-icon-shown-in-the-notification-area-tray

– Frank Nocke – 2015-08-06T11:59:01.847

1

I have a hefty 4.7 GB “Windows 10 Preload” in that folder. CleanMgr.exe and manual deletion only gets as much as half removed. The rest can't be deleted for various lock reasons (even with UAC escalation priviledges...), in particular a Folder $Windows.~BT/Sources/SafeOS. Update: Taking ownership away from „Trusted installer“ partially helps: https://superuser.com/questions/497095/how-to-delete-trustedinstaller-files-on-windows-8

– Frank Nocke – 2015-08-06T12:06:05.507

2"Clean Up System Files" option on Disk clean up removed this folder – Alireza Fattahi – 2015-09-16T13:50:47.540

1OK, guys, since there seems to be a steady stream of new info for my answer, I'm going to convert to community wiki. – Quelklef – 2015-09-18T04:36:57.820

I don't know about the directory itself, but I had no problems deleting the contents. Just paste C:$WINDOWS.~BT into the directory field of Explorer (well, I use Clover); select all; and delete. – user74094 – 2015-12-23T17:24:30.963

FWIW, if you don't remember the full path to cleanmgr.exe, just typing "cleanmgr" is oftentimes enough, since it's usually in PATH. – damd – 2016-07-16T15:33:10.297

@John This folder appeared for me long after I went from 8.1 to 10. It and another folder were created at the time that Microsoft techs were in a remote session on my machine. – Ungeheuer – 2016-12-17T05:12:30.940

42

Well, I got as much as 4.4 GB in it. Looks like Windows 7 is “pre-loading” Windows 10, though I never agreed and explicitly disabled it...

CleanMgr.exe mentioned in the other answer deleted some stuff, but mostly refused. Manual install in File Manager also failed, because of lack of rights (even with full admin privileges), lack of ownership (owned by “TrustedInstaller”), etc...

Here is a brief receipe, to help yourself from windows command prompt with administrator rights:

// go inside that folder:
cd /d "C:\$Windows.~BT"

// take over ownership
takeown /f *.* /R /D Y

// (go for coffee, takes a minute)
// grant full rights to everyone
icacls *.* /grant Everyone:(OI)(CI)F /T

// (coffee?)
// and all other subfolders, just be careful with use of *, naturally.
rmdir Sources /s /q

// actually, I got a few errors with rmdir. Things went smoother 
// with this Unix-like ´rm´ executable in your path,
// coming from unxutils.sf.net
rm -r -f *

// after all has been wiped, also remove the parent dir

C:\$Windows.~BT>cd ..
C:\>rmdir "$Windows.~BT"

// checking...
C:\>dir /A:DHS
 Volume in drive C is Windows
 Volume Serial Number is ####-####

 Directory of C:\

15/07/2015  19:15    <DIR>          $Recycle.Bin
30/07/2015  16:39    <DIR>          Boot
04/08/2015  08:35    <DIR>          Config.Msi
14/07/2009  07:08    <JUNCTION>     Documents and Settings [C:\Users]
01/11/2012  09:35    <JUNCTION>     Dokumente und Einstellungen [C:\Users]
01/11/2012  09:35    <JUNCTION>     Programme [C:\Program Files]
04/08/2015  08:35    <DIR>          System Volume Information
               0 File(s)              0 bytes
               7 Dir(s)     ########### bytes free

Frank Nocke

Posted 2015-03-05T22:11:43.497

Reputation: 597

1While this doesn't answer OP's question, it is useful. You may want to consider making a "wiki question" with this. – Quelklef – 2015-08-06T15:32:29.317

13This is outrageous. I never wanted or agreed to some "pre-download" of Windows 10 to my hard drive, yet Microsoft think it's find to waste 4 GB of hard drive space anyway? And who's to say that if I delete it, their update system won't be abused to download the 4GB again??? – Jez – 2015-08-24T21:36:21.330

1@Jez: Yes, neither did I. Personally I rate W10 use somewhere between drunk driving and hair-drying in the bathtub. And whatever privacy & security advocates dig up right now, serves me right very much... – Frank Nocke – 2015-08-25T09:41:14.107

1My strategy: Hold to W7 as long as possible. Change to a new Linux-based host OS — after convert current W7 to a Virtual Machine (to keep legacy MS-only apps alive), i.e. using Macrium Reflect. – Frank Nocke – 2015-08-25T09:43:16.453

10This is appalling. For the past week or so both our PCs have been sluggish and our internet connection has been very slow. Now I find 5GB in this folder on both PCs, so its downloaded 10GB! Without my authorisation. I love windows, and normally have no problems with MS, but this is just beyond a joke, they should not be doing this to millions of PCs around the would, just because they want to. – Rob Donovan – 2015-09-20T08:55:18.543

4GB? I had 50+GB. I had a failed feature release upgrade that left me with a huge ´$WINDOWS.~BT\NewOS´ folder. Cleaning it with the built-in Storage Sense tool did not work. BTW: If you have Git for Windows installed you already have a unix-style ´rm.exe´. – wp78de – 2020-02-05T21:47:13.733