Before you select by exclusion
Use this method when there are fewer items to leave out than items to act on. For example, if a folder contains 30 files and you want to copy all except three, select those three first and then invert the selection.
The word keep can mean different things depending on your next action:
- If you plan to delete, initially select the items you want to keep in the folder.
- If you plan to move, initially select the items you want to leave in the original folder.
- If you plan to copy, initially select the items you do not want in the copy. Copying does not remove the originals.
Work in an ordinary folder rather than File Explorer’s Home page or a search-results page. The selection can include folders as well as files. Selecting a folder for a later action affects that folder and its contents; inverting the selection does not separately review the files inside it.
If the files matter, make sure you have a usable backup before moving or deleting them. For a first attempt, you can practice in a folder containing a few disposable test files.
Select the items to leave out, then invert
- Open File Explorer. Press Windows key + E, or select the File Explorer icon on the taskbar.
- Open the folder containing the items. Check the address bar to confirm you are in the intended location. If you are looking at search results, navigate to the folder itself before continuing.
- Make the list easy to review. Select View > Details if you prefer a list with filenames and other information. You can also select View > Show > File name extensions to distinguish files with similar names, such as a document and a PDF with the same base name.
- Select the first item you want to leave out. Click it once. It should appear highlighted; do not double-click, which opens the item.
- Select the other exceptions. Hold Ctrl and click each additional file or folder you want to leave out. Keep holding Ctrl while clicking; otherwise, a normal click can replace the existing selection. If you select an exception by mistake, hold Ctrl and click it again to deselect it.
- Check your initial selection. At this point, the highlighted items should be the ones you do not want to copy, move, or delete. Scroll through the folder if necessary to make sure you have selected every exception.
- Invert the selection. On the command bar near the top of File Explorer, select See more (…), then select Invert selection.
- Inspect the result. The exceptions you initially highlighted should now be unselected. The other items in the current folder view should be highlighted. Nothing has been copied, moved, or deleted just by using Invert selection.
For a quick check, suppose the folder contains Budget.xlsx, Notes.txt, Photo.jpg, and Receipt.pdf. If you initially select Budget.xlsx and Receipt.pdf, inverting should leave those two unselected and highlight Notes.txt and Photo.jpg.
If the result is the opposite of what you intended, choose See more (…) > Invert selection again to return to the previous selection, then correct the exceptions. You can also hold Ctrl and click individual items to add them to or remove them from the final selection.
Review the selection before acting
Do not rely on the selection count alone. A count can tell you how many items are highlighted, but it cannot tell you whether they are the right items.
Before using a file command:
- Scroll through the complete list. Confirm that the items you want to leave alone are not highlighted and that the items you intend to act on are highlighted.
- Check for selected folders. If you want to act only on individual files, hold Ctrl and click any highlighted folders to remove them from the selection.
- Check similar names and extensions. Files that look alike may be different versions or file types. Turn on View > Show > File name extensions if extensions would help you identify them.
- Check the folder location again. In particular, distinguish a local folder from a OneDrive folder or a shared work location.
- Consider hidden items. The current view may not show every item in a folder. If you need to inspect hidden files, select View > Show > Hidden items before making your selection, then start the selection procedure again and review the result. Avoid changing or deleting unfamiliar system files.
If you are unsure about the result, stop before using Cut or Delete. It is safer to clear the selection and repeat the procedure than to guess.
Copy, move, or delete the reviewed items
Choose only the operation you intended. These steps apply to the items that are highlighted after inversion and review.
Copy the selected items
Copying is the safer choice when you want to retain the originals while creating another set.
- With the reviewed items selected, press Ctrl + C.
- Navigate to the destination folder.
- Press Ctrl + V.
- Wait for the copy to finish. If Windows reports a name conflict, read the choices carefully before deciding whether to replace, skip, or otherwise handle the existing item.
- Open the destination folder and check that the expected files and folders are present. The originals should still be in the source folder.
Move the selected items
Warning: Moving changes where the selected items are stored. If the destination is a synced or shared location, that change may also affect access or synchronization. Verify both the selection and destination before proceeding.
- With the reviewed items selected, press Ctrl + X.
- Navigate to the destination folder.
- Press Ctrl + V.
- Wait for the move to finish and respond carefully to any conflict or permission prompt.
- Check the destination for the expected items, then return to the original folder and confirm the items you meant to leave there remain.
If you moved the wrong items, select them in the destination, press Ctrl + X, return to the original folder, and press Ctrl + V. Review any name-conflict prompt rather than replacing a file automatically.
Delete the selected items
Warning: Deleting affects every selected file and folder, including the contents of selected folders. Shift + Delete bypasses the Recycle Bin, so do not use it for this procedure. Items from some locations may not be recoverable from the Windows Recycle Bin; keep a backup and pay attention to any Windows warning.
- Make one final pass through the highlighted items and confirm that the files and folders you want to keep are not selected.
- Press Delete.
- If Windows asks for confirmation, read the message and confirm only if the listed action is correct.
- Check the folder to verify that the intended items remain.
For OneDrive, deleting a synced file is not the same as merely freeing local disk space: the deletion can sync to OneDrive and other devices. A shared file’s deletion can affect other people as well.
Troubleshoot the selection or recover an item
The wrong items are highlighted
If you have not yet copied, moved, or deleted anything, choose See more (…) > Invert selection again to swap back. Then hold Ctrl and click the items that need correcting before inverting once more.
Alternatively, make small corrections to the final selection with Ctrl + click. After correcting it, review the whole list again before acting.
You cannot find “Invert selection”
Look for See more (…) on the File Explorer command bar, not in a file’s right-click menu. Open an ordinary folder and check the command there. If the Explorer window is narrow, make it wider so the command bar is easier to inspect.
If you are in another app’s file-opening dialog rather than a File Explorer window, open File Explorer separately with Windows key + E and navigate to the folder. The dialog and Explorer do not necessarily offer the same commands.
You selected everything—or nothing
If you initially select every item and then invert, the result is no selected items. If the initial selection was not what you expected, start again: select only the exceptions, verify them, and choose Invert selection once.
A single click without Ctrl can also replace an existing multi-selection. When selecting separate exceptions, keep Ctrl held while clicking each additional item.
A file you expected is missing from the list
Check that you opened the correct folder and are not looking at search results. The item may be in a subfolder or may be hidden. If you enable View > Show > Hidden items, redo and review the selection; do not assume an earlier selection still represents the set you want to act on.
A deleted item needs to be restored
For an item available in the Windows Recycle Bin:
- Open Recycle Bin.
- Find and select the deleted file or folder.
- Right-click it and select Restore.
- Return to its original folder and verify that it is present.
For a OneDrive file, also check the Recycle bin on the OneDrive website while signed in to the correct account. Microsoft notes that online-only files deleted from the cloud do not appear in the computer’s Recycle Bin; they may be recoverable from the OneDrive or SharePoint web recycle bin instead.
If the item is not in an available recycle bin, check your backup. For work or school files, contact your IT administrator promptly with the item’s name, original location, and approximate deletion time.