How to Remove Gallery From File Explorer

In this guide we  will review how to hide and remove Gallery from the navigation pane in File Explorer in Windows 11. The Gallery item is a new folder that displays your photos, screenshots, and wallpapers in a convenient way. Something similar you may have seen in the Photos app.


So, Gallery is a new folder in Windows 11 which is available starting in the October 2023 update, known as "Moment 4". It appears in the left pane of File Explorer. Clicking it opens a special view that replicates the image listing found in the Photos app. It shows big preview thumbnails of images, hides file names, and arranges them in chronological order. It also shows a time line for easy navigation.

Windows 11 Gallery in File Explorer
Windows 11 Gallery in File Explorer

The "Gallery" folder is customizable. You can easily add more folders to it, so their files will also be displayed in the common view. Regardless of how many folders you have added to the Gallery, all the files will appear in its timeline. But they will remain at their original location on the drive. Note: the "Collection"  menu in the Gallery contains the "Manage Locations" option. By default, it only has the "Pictures" folder, but you can add others.

You can also use the Gallery functionality in the Save file/Open file dialog. It is very convenient when you are adding attachments, creating PowerPoint presentations, or composing social media posts. Moreover, the Command Bar in the File Explorer Gallery has a handy "Add Phone Photos" button that allows you to quickly acquire and show photos from your smartphone. The button shows a OneDrive QR code that you can scan with your phone and view the photos via OneDrive.

Some users may want to get rid of the Gallery entry. When you don't use it frequently, it just takes space in the navigation pane. So here's how to remove it.

To remove the Gallery folder from navigation pane in Windows 11 File Explorer, do the following.

Remove Gallery from File Explorer

  1. Open the Registry Editor app (Win + R > regedit.)
  2. Navigate to the following key: HKEY_CURRENT_USER\Software\Classes\CLSID.
  3. On the left, right-click the CLSID subkey and select New > Key from the menu.Create New Key Under Clsid
  4. Name the new key {e88865ea-0e1c-4e20-9aa6-edcd0212c87c}.Gallery Key In The Registry
  5. Now, right-click the {e88865ea-0e1c-4e20-9aa6-edcd0212c87c} key you just created, and select New > DWORD (32-bit)value.Create New Dword Value
  6. Name the name value System.IsPinnedToNameSpaceTree value and keep its value data set to 0 to remove the Gallery from the navigation pane.Remove Gallery From File Explorer
  7. Restart File Explorer, e.g. close all its open windows and then open a new one.Gallery Removed From File Explorer

You are done. This method will hide the Gallery item for your user account. It will disappear from the navigation pane in File Explorer.

Note: If you already have the System.IsPinnedToNameSpaceTree in the Registry, then double-click it to open the value dialog, and change it to 0.

Finally, to undo the change (restore the Gallery), just set System.IsPinnedToNameSpaceTree to 1. Reload File Explorer and you will see it again:

Undo The Change

Also, to save you time, I've traditionally prepared ready-to-use REG files. Download them here:

Download Registry files

Extract the ZIP archive you have downloaded, so you will have these two files.

Reg Files To Remove Gallery From File Explorer

  • Remove_Gallery_from_File_Explorer.reg = removes the Gallery icon from File Explorer.
  • Add_Gallery_to_File_Explorer.reg​ = restores the Gallery entry.

Open the REG file, and confirm the User Account Control prompt (if any). Then click Yes to add the change to the Registry, and click OK in the Registry editor message. If File Explorer is open, then close it and start it to see the change.

The reviewed method applies to the current user account, i.e. to the one you are signed in with. But if you want to hide the Gallery in File Explorer for each and every user in your Windows 11, the Registry tweak should be different.

To hide Gallery in File Explorer for all users, do the following.

Hide Gallery in File Explorer for All Users

  1. Launch the regedit app. You can type regedit in the Search pane (Win + S).
  2. Now, go to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace_41040327 key.Gallery Key For All Users
  3. Under NameSpace_41040327 on the left, find the {e88865ea-0e1c-4e20-9aa6-edcd0212c87c} key.
  4. Right-click the {e88865ea-0e1c-4e20-9aa6-edcd0212c87c} key, and select Delete from the context menu.Hide Gallery For All Users
  5. Now, re-launch File Explorer by closing open windows and opening it again. The Gallery entry is now hidden.Remove Gallery From File Explorer For Everyone

Done! This method hides Gallery in  File Explorer for all users in Windows 11.

If you occasionally change your mind and want to undo the change, here's how to add the Galery item back for all users.

Restore Gallery Entry in Navigation Pane for All Users

  1. Close all File Explorer windows.
  2. Launch regedit.exe, and go to the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace_41040327.
  3. Right-click NameSpace_41040327 in the left tree, and select New >Key from the menu.New Key
  4. Name the new key  {e88865ea-0e1c-4e20-9aa6-edcd0212c87c} and press Enter.Restore Gallery Key
  5. Now, in the right pane, double-click the "(Default)" value and set its data to the {e88865ea-0e1c-4e20-9aa6-edcd0212c87c} string.Restore Gallery In File Explorer

These steps will restore the Gallery for all user accounts. Open File Explorer, so it will appear in the navigation pane.Gallery Restored

Ready-to-use REG files

To save your time, you can download the following REG files from this link:

Download REG files

They are packed in a ZIP archive. Extract its contents to any folder of your choice.

Reg Files To Hide Gallery In File Explorer For All Users

Open the Remove_Gallery_for_all_users.reg​ file to hide it for everyone. Click Yes in User Account Control, and then click Yes one more time to confirm the addition to the Registry.

The second file, Restore_Gallery_for_all_users.reg, adds the icon back.

Don't forget to relaunch File Explorer after you use the files.

That's it.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!


Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

8 thoughts on “How to Remove Gallery From File Explorer”

  1. Thank you very much for this and for providing the download files, which allowed me to complete it effortlessly. May you be blessed!

  2. Hello! (following text from translator)
    I just read your article about the specific setting in Windows Explorer 11.
    I wanted to ask you about a small change I’ve been trying to make (see photo).
    I have kept this appearance since the time of the windows 7 until today in windows 11 22H2 22000.
    The newest version of win 11 23H2 22631 unfortunately I encounter an obstacle. I have managed to achieve the order, I know how to rename the “Home” folder and delete the “Gallery”. but I have no idea how to add the Recycle Bin and the Downloads folder.
    Do you know if this can be done? Do yoy have a solution via registry keys for this?

    Thank you very much!

  3. Thank you for the helpful post! Here’s a one-liner derived from your writing that removes it for all users:

    reg delete “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace_41040327\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}”

Leave a Reply

Your email address will not be published.

Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.