How to Delete desktop.ini Files in Windows 10 Safely

Yes, you can delete a desktop.ini file in Windows 10, but do it only if you know which folder it belongs to. The file stores folder-specific settings, such as a custom icon or name. Removing it can undo those settings, and Windows or an app may recreate it. If you only want to stop seeing the file, hide hidden items in File Explorer instead.

What a desktop.ini file does

desktop.ini is a plain-text configuration file that Windows uses to customize a folder. Microsoft documents settings for a custom icon, an information tip, and localized folder or item names. The file is normally hidden, and Windows gives it special meaning in folders marked for customization. Read Microsoft’s guide to customizing folders with Desktop.ini for the supported settings.

Seeing the filename by itself does not mean your PC is infected. If you are unsure about a particular file, check its folder and contents before removing it. Do not edit the file unless you intend to change that folder’s behavior.

Show the specific desktop.ini file

  1. Open File Explorer and go directly to the folder where you saw the file, such as the Desktop folder. Avoid selecting every result from a whole-drive search.
  2. On the View tab, turn on Hidden items. You can also turn on File name extensions so you can distinguish desktop.ini from a similarly displayed name such as desktop.ini.txt. Microsoft’s File Explorer guide describes these view controls.
Windows 10 File Explorer View tab with the Hidden items checkbox checked.
Turn on Hidden items to see files that have the hidden attribute.

A desktop.ini file can also be marked as a protected operating system file. If it still does not appear and you have a specific reason to remove it, select View > Options > Change folder and search options, then open the View tab. Under Advanced settings, select Show hidden files, folders, and drives. Temporarily clear Hide protected operating system files (Recommended) only if you can identify the exact file, and accept Windows’ warning. This exposes other protected files too, so do not bulk-select or delete anything.

Windows 10 Folder Options View tab with hidden files enabled and protected operating system files still hidden.
Windows can show ordinary hidden files while keeping protected operating system files hidden.

Check the file before deleting it

If you want to understand what the file controls, right-click desktop.ini, choose Open with, and select Notepad. Opening it as text does not run it. Look for entries such as IconFile, IconIndex, or InfoTip; those can explain why a folder has a custom icon or hover description. Close Notepad without saving if you only wanted to inspect it. If you may want the customization later, copy the file to a safe location first.

A desktop.ini file open in Notepad, showing ShellClassInfo icon and infotip settings.
Notepad displays desktop.ini as text, including example icon and infotip entries.

Delete only the file you selected

  1. In File Explorer, confirm the selected item is named exactly desktop.ini and is in the intended folder.
  2. Right-click that file and choose Delete, or select it and press the Delete key. Avoid Shift+Delete so you have a chance to recover it from the Recycle Bin.
  3. If Windows shows an administrator prompt or a warning about deleting a system folder, cancel unless you understand why it appears and still intend to proceed.
A single desktop.ini file selected in File Explorer with Delete highlighted in its context menu.
Target the one selected desktop.ini file; leave the other items in the folder alone.

Restore File Explorer’s visibility settings

If you temporarily cleared Hide protected operating system files (Recommended), return to View > Options > View, check it again, and select Apply or OK. Restore Hidden items to the state you normally use; turn it off if you enabled it only for this task. Microsoft recommends keeping protected operating system files hidden during ordinary browsing.

Windows 10 File Explorer View tab with Hidden items unchecked after cleanup.
Turn Hidden items off again if you normally keep hidden files out of view.

What happens after you remove desktop.ini?

The folder itself and its documents remain. However, a custom icon, localized name, or information tip that depended on the deleted file may disappear. If a Windows feature or application needs its own folder settings, the file may return. Repeatedly deleting it will not preserve those customizations; hiding it is the simpler option when visibility is the only problem.

Do not change the Registry just to keep desktop.ini from appearing. File Explorer already provides a reversible way to hide it, while a folder’s customization may depend on the configuration file. If the file keeps returning in a folder you do not recognize, review its location and contents and run your usual security scan instead of deleting other system files.

Leave a Comment

How to Set Different Scaling Levels for Multiple Monitors in Windows 10

How to Set Different Scaling Levels for Multiple Monitors in Windows 10

Adjust each Windows 10 monitor independently with per-display scaling, keep text readable, and troubleshoot custom scaling or blurry apps.

How to Type on an iPhone From a Windows 10 PC

How to Type on an iPhone From a Windows 10 PC

Use AirType’s browser pairing setup to type on an iPhone from a Windows 10 PC, with current setup steps, troubleshooting, and privacy limits.

How to Hide the Mouse Cursor in Windows 10 Apps

How to Hide the Mouse Cursor in Windows 10 Apps

Hide the mouse pointer in Windows 10 videos, games, and other apps with built-in typing controls or PowerToys CursorHide’s adjustable inactivity timer.

How to Open Control Panel Power Options on a Windows 10 Desktop

How to Open Control Panel Power Options on a Windows 10 Desktop

Find Control Panel Power Options on a Windows 10 desktop, open the page with a Run command, and adjust power plans, display timeouts, sleep, and button behavior.

How to Prevent a File from Being Recovered on Windows 10

How to Prevent a File from Being Recovered on Windows 10

Learn what Windows 10 deletion leaves behind, how to use SDelete on an HDD, and why SSDs and cloud backups need separate treatment.

How to Access Advanced Settings for an Integrated Webcam in Windows 10

How to Access Advanced Settings for an Integrated Webcam in Windows 10

Use FFmpeg’s DirectShow tools to open an integrated webcam’s driver properties in Windows 10, find the correct device, and troubleshoot missing controls.

How to Identify a Keypress on Windows 10

How to Identify a Keypress on Windows 10

Identify a keypress in Windows 10 with a browser event tester or SharpKeys, then separate layout, software, and keyboard hardware issues.

How to Enter File or Folder Paths with Spaces in Windows 10 Command Prompt

How to Enter File or Folder Paths with Spaces in Windows 10 Command Prompt

Use double quotes around each complete path with spaces in Command Prompt. Learn how to list, change to, copy, and troubleshoot Windows 10 files and folders.

How to Disable Start Menu Auto-Expand on Windows 10

How to Disable Start Menu Auto-Expand on Windows 10

Turn off the Windows 10 Start menu’s hover-to-expand behavior with a legacy Mach2 command, check build limits, and see the built-in app-list alternative.

How to Fix the “iTunes Library.itl Cannot Be Read” Error in Windows 10

How to Fix the “iTunes Library.itl Cannot Be Read” Error in Windows 10

Fix the iTunes Library.itl read error on Windows 10 by updating iTunes, restoring a compatible backup, or safely creating a new library without deleting media files.