For Current User
Press Windows + R, type regedit, and press Enter to open the Registry Editor.
Navigate to the following path: HKEY_CURRENT_USER\Software\Classes\CLSID
Locate the key {e88865ea-0e1c-4e20-9aa6-edcd0212c87c}. If it doesn't exist, create it: Right-click on CLSID, select New > Key, and name it {e88865ea-0e1c-4e20-9aa6-edcd0212c87c}.
Inside this key, create a new DWORD: Right-click on the right pane, select New > DWORD (32-bit) Value, and name it System.IsPinnedToNamespaceTree.
Double-click the newly created DWORD and set its value to 0.
Close the Registry Editor and restart File Explorer or your computer.
For All Users (Administrator Rights Required)
Open Registry Editor as an administrator.
Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace
Locate the key {e88865ea-0e1c-4e20-9aa6-edcd0212c87c}. If it exists, delete it: Right-click the key and select Delete.
Navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum
Create a new DWORD: Right-click on the right pane, select New > DWORD (32-bit) Value, and name it {e88865ea-0e1c-4e20-9aa6-edcd0212c87c}.
Set the value of this DWORD to 1.
Close the Registry Editor and restart File Explorer or your computer.
Alternative Command-Line Method
Open Command Prompt as Administrator.
Run the following command to remove the Gallery for all users:
reg delete „HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{e88865ea-0e1c-4e20-9aa6-edcd0212c87c}“ /f Kopieren Restart your computer.