remove gallery and home from this pc windows 11

bedouinbro

Well-Known Member
Joined
Feb 6, 2024
Messages
51
Windows File Explorer sidebar with Home and Gallery circled in red.


basically what the title says
 

Last edited by a moderator:
Hi bedouinbro — yep, those two entries can be hidden with a small registry tweak.
This removes Home and Gallery from the File Explorer left navigation pane only. It does not delete your files or uninstall anything. The tweak uses the per-user registry path HKEY_CURRENT_USER, so it should only affect your account.

Remove Home and Gallery​

  1. Open Notepad.
  2. Paste this in:
Code:
Windows Registry Editor Version 5.00

; Remove Home from File Explorer navigation pane
[HKEY_CURRENT_USER\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}]
@="CLSID_MSGraphHomeFolder"
"System.IsPinnedToNameSpaceTree"=dword:00000000

; Remove Gallery from File Explorer navigation pane
[HKEY_CURRENT_USER\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}]
"System.IsPinnedToNameSpaceTree"=dword:00000000
  1. Save it as:
Remove_Home_Gallery.reg
  1. Double-click the .reg file and accept the prompts.
  2. Restart File Explorer by doing one of these:
Stop-Process -Name explorer -Force
Or open Task Manager, right-click Windows Explorer, then choose Restart.

Restore them later​

If you want Home and Gallery back, make another .reg file with this:
Code:
Windows Registry Editor Version 5.00

; Restore Home
[HKEY_CURRENT_USER\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}]
@="CLSID_MSGraphHomeFolder"
"System.IsPinnedToNameSpaceTree"=dword:00000001

; Restore Gallery
[HKEY_CURRENT_USER\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}]
"System.IsPinnedToNameSpaceTree"=dword:00000001

Quick note​

Before editing the registry, it’s a good idea to create a restore point:
  1. Press Win + R.
  2. Type sysdm.cpl.
  3. Go to System Protection.
  4. Click Create.
These CLSID-based tweaks are the common Windows 11 method for hiding Home and Gallery from the navigation pane. Home uses {f874310e-b6b7-47dc-bc84-b9e6b38f5903}, and Gallery uses {e88865ea-0e1c-4e20-9aa6-edcd0212c87c}.
 

Hi bedouinbro — yep, those two entries can be hidden with a small registry tweak.
This removes Home and Gallery from the File Explorer left navigation pane only. It does not delete your files or uninstall anything. The tweak uses the per-user registry path HKEY_CURRENT_USER, so it should only affect your account.

Remove Home and Gallery​

  1. Open Notepad.
  2. Paste this in:
Code:
Windows Registry Editor Version 5.00

; Remove Home from File Explorer navigation pane
[HKEY_CURRENT_USER\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}]
@="CLSID_MSGraphHomeFolder"
"System.IsPinnedToNameSpaceTree"=dword:00000000

; Remove Gallery from File Explorer navigation pane
[HKEY_CURRENT_USER\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}]
"System.IsPinnedToNameSpaceTree"=dword:00000000
  1. Save it as:
Remove_Home_Gallery.reg
  1. Double-click the .reg file and accept the prompts.
  2. Restart File Explorer by doing one of these:
Stop-Process -Name explorer -Force
Or open Task Manager, right-click Windows Explorer, then choose Restart.

Restore them later​

If you want Home and Gallery back, make another .reg file with this:
Code:
Windows Registry Editor Version 5.00

; Restore Home
[HKEY_CURRENT_USER\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}]
@="CLSID_MSGraphHomeFolder"
"System.IsPinnedToNameSpaceTree"=dword:00000001

; Restore Gallery
[HKEY_CURRENT_USER\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}]
"System.IsPinnedToNameSpaceTree"=dword:00000001

Quick note​

Before editing the registry, it’s a good idea to create a restore point:
  1. Press Win + R.
  2. Type sysdm.cpl.
  3. Go to System Protection.
  4. Click Create.
These CLSID-based tweaks are the common Windows 11 method for hiding Home and Gallery from the navigation pane. Home uses {f874310e-b6b7-47dc-bc84-b9e6b38f5903}, and Gallery uses {e88865ea-0e1c-4e20-9aa6-edcd0212c87c}.
poweshell command
 

Sure — run this in PowerShell. Admin is not required because this edits only your current user registry hive.

Remove Home and Gallery​

Code:
New-Item -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Force | Out-Null
Set-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Name "(default)" -Value "CLSID_MSGraphHomeFolder"
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 0 -Force | Out-Null

New-Item -Path "HKCU:\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 0 -Force | Out-Null

Stop-Process -Name explorer -Force

Restore Home and Gallery​

Code:
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 1 -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 1 -Force | Out-Null

Stop-Process -Name explorer -Force
If PowerShell complains about the default value line, use this version instead:
Code:
reg add "HKCU\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /ve /d "CLSID_MSGraphHomeFolder" /f
reg add "HKCU\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 0 /f
Stop-Process -Name explorer -Force
 

Sure — run this in PowerShell. Admin is not required because this edits only your current user registry hive.

Remove Home and Gallery​

Code:
New-Item -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Force | Out-Null
Set-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Name "(default)" -Value "CLSID_MSGraphHomeFolder"
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 0 -Force | Out-Null

New-Item -Path "HKCU:\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 0 -Force | Out-Null

Stop-Process -Name explorer -Force

Restore Home and Gallery​

Code:
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 1 -Force | Out-Null
New-ItemProperty -Path "HKCU:\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" -Name "System.IsPinnedToNameSpaceTree" -PropertyType DWord -Value 1 -Force | Out-Null

Stop-Process -Name explorer -Force
If PowerShell complains about the default value line, use this version instead:
Code:
reg add "HKCU\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /ve /d "CLSID_MSGraphHomeFolder" /f
reg add "HKCU\Software\Classes\CLSID\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 0 /f
reg add "HKCU\Software\Classes\CLSID\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}" /v "System.IsPinnedToNameSpaceTree" /t REG_DWORD /d 0 /f
Stop-Process -Name explorer -Force
Screenshot 2026-06-12 213739.webp


why e disk is double ? how to fix it ?
 

Hi bedouinbro — that usually happens when File Explorer is showing the same drive twice in the navigation pane, often because of a Windows Explorer/registry navigation-pane duplicate entry.
First check whether Windows really sees two E: volumes or if it is only an Explorer display bug.

1. Check if Windows sees duplicate E: drives​

Open PowerShell and run:
Get-Volume | Sort-Object DriveLetter | Format-Table DriveLetter, FileSystemLabel, DriveType, FileSystem, SizeRemaining, Size
If it shows only one E: entry, then it is just File Explorer duplicating it visually.

2. Quick reset Explorer​

Run:
Stop-Process -Name explorer -Force
Explorer will restart. If the duplicate is still there, continue below.

3. Fix duplicate drive entry in navigation pane​

Create a restore point first since this edits the registry.
Open PowerShell as Administrator and run:
Code:
reg export "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders" "$env:USERPROFILE\Desktop\DelegateFolders_Backup.reg" /y

reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}" /f

reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}" /f

Stop-Process -Name explorer -Force
That registry key is commonly responsible for duplicate drive listings in File Explorer’s navigation pane.

4. Undo if needed​

If something looks wrong, double-click this file on your Desktop:
DelegateFolders_Backup.reg
Then restart Explorer again:
Stop-Process -Name explorer -Force

Important note​

If Get-Volume shows two actual E: entries, do not use the registry fix yet. In that case, open Disk Management with:
diskmgmt.msc
Then check whether two partitions/devices are somehow using or presenting as E:. Normally Windows should not assign the same drive letter to two mounted volumes.
 

Hi bedouinbro — that usually happens when File Explorer is showing the same drive twice in the navigation pane, often because of a Windows Explorer/registry navigation-pane duplicate entry.
First check whether Windows really sees two E: volumes or if it is only an Explorer display bug.

1. Check if Windows sees duplicate E: drives​

Open PowerShell and run:
Get-Volume | Sort-Object DriveLetter | Format-Table DriveLetter, FileSystemLabel, DriveType, FileSystem, SizeRemaining, Size
If it shows only one E: entry, then it is just File Explorer duplicating it visually.

2. Quick reset Explorer​

Run:
Stop-Process -Name explorer -Force
Explorer will restart. If the duplicate is still there, continue below.

3. Fix duplicate drive entry in navigation pane​

Create a restore point first since this edits the registry.
Open PowerShell as Administrator and run:
Code:
reg export "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders" "$env:USERPROFILE\Desktop\DelegateFolders_Backup.reg" /y

reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}" /f

reg delete "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\DelegateFolders\{F5FB2C77-0E2F-4A16-A381-3E560C68BC83}" /f

Stop-Process -Name explorer -Force
That registry key is commonly responsible for duplicate drive listings in File Explorer’s navigation pane.

4. Undo if needed​

If something looks wrong, double-click this file on your Desktop:
DelegateFolders_Backup.reg
Then restart Explorer again:
Stop-Process -Name explorer -Force

Important note​

If Get-Volume shows two actual E: entries, do not use the registry fix yet. In that case, open Disk Management with:
diskmgmt.msc
Then check whether two partitions/devices are somehow using or presenting as E:. Normally Windows should not assign the same drive letter to two mounted volumes.
Screenshot 2026-06-12 220648.webp

eject icon remove this
 

Hi bedouinbro — that icon is the Safely Remove Hardware / Eject Media icon.
If you only want it hidden from the tray, do this first.

Option 1 — Hide the eject icon from taskbar overflow​

  1. Open Settings.
  2. Go to Personalization.
  3. Open Taskbar.
  4. Expand Other system tray icons.
  5. Turn Windows Explorer / Safely Remove Hardware to Off if it appears there.
This only hides the icon. It does not disable eject support.

Option 2 — If it appears because your internal E: drive is detected as removable​

This often happens when a SATA drive is set as Hot Plug / Hot Swap in BIOS/UEFI.
  1. Restart the PC.
  2. Enter BIOS/UEFI setup.
  3. Look for SATA options such as Hot Plug, Hot Swap, or External SATA.
  4. Disable Hot Plug for the port used by your internal E: drive.
  5. Save and boot back into Windows.
This is the cleanest fix if the eject icon is showing for an internal drive.

Option 3 — Registry fix for internal SATA drive shown as removable​

Only use this if the drive is internal and should not be ejectable.
  1. Open PowerShell as Administrator.
  2. Run this to list your disks:
Get-Disk | Format-Table Number, FriendlyName, BusType, OperationalStatus, Size
  1. Find the disk number for the internal drive that contains E:.
  2. If it is disk 0, use this:
reg add "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /t REG_MULTI_SZ /d 0 /f
  1. If it is disk 1, use this instead:
reg add "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /t REG_MULTI_SZ /d 1 /f
  1. Restart Windows.

Undo registry change​

If needed, remove the tweak with:
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /f
Then restart.
Important: Do not remove/hide this feature if you regularly use USB drives, external HDDs, card readers, or phones, because the eject icon helps prevent data corruption when unplugging them.
 

Hi bedouinbro — that icon is the Safely Remove Hardware / Eject Media icon.
If you only want it hidden from the tray, do this first.

Option 1 — Hide the eject icon from taskbar overflow​

  1. Open Settings.
  2. Go to Personalization.
  3. Open Taskbar.
  4. Expand Other system tray icons.
  5. Turn Windows Explorer / Safely Remove Hardware to Off if it appears there.
This only hides the icon. It does not disable eject support.

Option 2 — If it appears because your internal E: drive is detected as removable​

This often happens when a SATA drive is set as Hot Plug / Hot Swap in BIOS/UEFI.
  1. Restart the PC.
  2. Enter BIOS/UEFI setup.
  3. Look for SATA options such as Hot Plug, Hot Swap, or External SATA.
  4. Disable Hot Plug for the port used by your internal E: drive.
  5. Save and boot back into Windows.
This is the cleanest fix if the eject icon is showing for an internal drive.

Option 3 — Registry fix for internal SATA drive shown as removable​

Only use this if the drive is internal and should not be ejectable.
  1. Open PowerShell as Administrator.
  2. Run this to list your disks:
Get-Disk | Format-Table Number, FriendlyName, BusType, OperationalStatus, Size
  1. Find the disk number for the internal drive that contains E:.
  2. If it is disk 0, use this:
reg add "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /t REG_MULTI_SZ /d 0 /f
  1. If it is disk 1, use this instead:
reg add "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /t REG_MULTI_SZ /d 1 /f
  1. Restart Windows.

Undo registry change​

If needed, remove the tweak with:
reg delete "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /f
Then restart.
Important: Do not remove/hide this feature if you regularly use USB drives, external HDDs, card readers, or phones, because the eject icon helps prevent data corruption when unplugging them.
poweshell command
 

Sure, bedouinbro — if you only want the PowerShell command, use this first:
Start-Process "ms-settings:taskbar"
Then go to Other system tray icons and turn off Windows Explorer / Safely Remove Hardware if it appears.

If the eject icon is caused by internal drive E:​

Run this in PowerShell as Administrator:
Get-Disk | Format-Table Number, FriendlyName, BusType, OperationalStatus, Size
If your E: drive is an internal SATA drive, run this command, replacing 0 with the correct internal disk/port number:
reg add "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /t REG_MULTI_SZ /d 0 /f
Then restart Explorer or reboot:
Stop-Process -Name explorer -Force
If it does not change, reboot Windows.

Undo command​

reg delete "HKLM\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device" /v TreatAsInternalPort /f
Important: Only use the registry command if the drive shown in the eject menu is an internal drive. Do not use it for USB drives or external drives.
 

Back
Top