EasyAbout 10 minutesWindows

A file will not delete because it is in use

It says the file is open in another program but nothing is open.

CF

Written by The CommonFixes team · fact checked by CommonFixes review desk

Last updated

Short answer

A background process, a preview pane, or a search index still holds the file open. The quickest thing to try first: close the preview pane — In File Explorer open the View menu and switch off the Preview pane and the Details pane. Explorer itself is often the program holding the file. Most people are done in about 10 minutes.

Full walkthrough below: 5 steps for Windows, rated easy.

Sounds like this

  • File in use message
  • Cannot rename or move
  • No visible program using it

Why it happens

A background process, a preview pane, or a search index still holds the file open.

Work through these in order

0% done
  1. 1

    Close the preview pane

    In File Explorer open the View menu and switch off the Preview pane and the Details pane. Explorer itself is often the program holding the file.

  2. 2

    Restart Explorer

    In Task Manager find Windows Explorer, right click and choose Restart, then try deleting again.

  3. 3

    Find the real culprit

    Open Task Manager, go to Performance, click Open Resource Monitor, and search for the file name in the CPU tab's Associated Handles box.

  4. 4

    Restart the computer

    A restart releases every held file. Delete it immediately after signing back in, before opening anything else.

  5. 5

    Delete from Safe Mode

    If it still refuses, start in Safe Mode where almost nothing runs in the background, and delete it there.

If none of that worked

Take ownership of the file: right click, Properties, Security, Advanced, and change the owner to your account.

Did this fix work for you?

A quick thumbs up helps other readers find the guides that actually work.

Share this fix

Related fixes worth reading

Chosen automatically from the 157 guides on CommonFixes, based on how closely they match this problem.

Still not it? Browse every fix or see more in files and storage.

Who wrote this and how we checked it

CF

The CommonFixes team

Writer and researcher

We are a small group of people who spend our days repairing laptops and desktops for family, friends and small offices. Every guide here starts with a problem someone actually brought to us, and we only write down the steps that put the machine right.

  • Everyday repairs
  • Windows and Mac
  • Plain language
RD

CommonFixes review desk

Technical editor

Before a guide goes live, a second person walks through it on a real machine and checks each instruction against the maker's own support pages. Anything we cannot confirm is removed rather than guessed at.

  • Fact checking
  • Safety warnings
  • Source links

This guide was last updated on 10 August 2026. If a step no longer matches what you see on screen, tell us on the contact page and we will test it again.

A gentle reminder: back up anything you cannot afford to lose before major repairs. If a step ever feels risky, stop and ask a technician. There is no shame in that.