What you can undo and what you cannot

You can undo most changes you make to files, settings, and programs on your computer — but not all of them, and the method depends on what you changed. If you deleted a file, moved a folder, changed a setting, or uninstalled a program, you have options. If you formatted a hard drive, deleted files permanently using shift+delete, or made changes weeks ago, recovery becomes much harder and sometimes impossible.

The key difference is between undo (reversing something you just did) and recovery (finding something you deleted or changed long ago). Undo works best when you act quickly — usually within the same session or the same day. Recovery works only if your computer kept a backup or if the data is still physically on the drive.

This guide covers the methods you can use right now, what each one does, and when to stop trying and accept the change.

Key Takeaways

  • The keyboard shortcut Ctrl+Z (Windows) or Command+Z (Mac) undoes the last action in most programs, but only if you act within minutes or hours, not days.
  • The Recycle Bin or Trash holds deleted files for weeks or months, and you can restore them by right-clicking and selecting restore or put back.
  • Windows System Restore and Mac Time Machine can roll back your entire computer to an earlier date, but only if you turned them on before the change happened.
  • Uninstalling a program or reversing a Windows update is usually straightforward through Control Panel or Settings, but some changes cannot be undone once they are complete.
  • If you cannot undo a change through these methods, the data may still be recoverable with specialized software, but success depends on how long ago the change happened and what you have done since.

Using Ctrl+Z or Command+Z to undo your last action

The fastest way to undo a change is the keyboard shortcut Ctrl+Z on Windows or Command+Z on Mac. This works in almost every program — word processors, spreadsheets, photo editors, file managers, and web browsers. Press it once to undo the last thing you did, press it again to undo the thing before that, and keep pressing to go back further.

This method works only if you are still in the same program and have not closed it. Once you close the program, the undo history is gone. Most programs also have a limit — they remember the last 50 or 100 changes, not every change you made in the past month. The undo history also clears if your computer crashes or loses power.

If you are not sure whether undo will work, try it. There is no harm in pressing Ctrl+Z or Command+Z. If nothing happens, the program does not have an undo history for that action, and you will need to try a different method.

Restoring files from the Recycle Bin or Trash

When you delete a file by pressing Delete or dragging it to the trash, the file does not disappear when ready. It goes to the Recycle Bin on Windows or the Trash on Mac, where it sits for weeks or months before your computer automatically deletes it permanently.

To restore a deleted file on Windows, open the Recycle Bin (search for "Recycle Bin" in the Start menu), find the file you want, right-click it, and select Restore. The file goes back to the folder it came from. On Mac, open the Trash (look for the trash icon in the dock), find the file, right-click it, and select Put Back.

If you emptied the Recycle Bin or Trash, the files are no longer there, but they may still be on your hard drive. See the section on recovery software below. If you deleted a file using Shift+Delete on Windows or Command+Delete on Mac, it skips the Recycle Bin entirely and goes straight to permanent deletion — recovery is still possible but much harder.

Rolling back your computer with System Restore or Time Machine

If you changed a setting, installed a program that broke something, or updated Windows and now your computer does not work right, you can roll your entire computer back to an earlier date. Windows System Restore and Mac Time Machine do this by keeping snapshots of your computer at different points in time.

On Windows, search for "System Restore" in the Start menu and open it. Click Choose a different restore point, then pick a date before the change happened. Windows will restart and restore your computer to that date. This reverses any program installations, setting changes, and Windows updates that happened after that date, but it does not delete files you created or downloaded after that date.

On Mac, restart your computer and hold Command+R to enter Recovery Mode. Click Restore from Time Machine Backup, select the backup date you want, and Mac will restore your computer to that point. Like Windows, this undoes changes to settings and programs but keeps files you created after the backup date.

This method only works if you turned on System Restore or Time Machine before the change happened. If you never turned them on, your computer has no snapshots to restore from, and you cannot use this method. Check whether they are on by searching for "System Restore" on Windows or opening System Preferences and clicking Time Machine on Mac.

Uninstalling programs and reversing Windows updates

If you installed a program and want to remove it, go to Control Panel on Windows (search for it in the Start menu), click Programs and Features, find the program in the list, and click Uninstall. On Mac, open Applications in Finder, find the program, and drag it to the Trash, or right-click it and select Move to Trash.

Uninstalling a program removes the program files but usually leaves behind settings and data files that the program created. If you want to remove those too, you may need to delete them manually — they are usually in a folder with the program's name in your Documents or in a hidden folder called AppData (Windows) or Library (Mac).

If a Windows update caused a problem, you can reverse it. Go to Settings, click System, then Recovery, and look for Go back. This uninstalls the most recent Windows update and rolls your computer back to the previous version. You have a limited window to do this — usually 10 days after the update installed — so act quickly if you need to.

Using recovery software when other methods fail

If you cannot undo a change using the methods above, specialized recovery software may be able to find deleted files or restore data. Programs like Recuva (Windows), EaseUS Data Recovery Wizard (Windows and Mac), and DiskDigger (Windows) scan your hard drive for files that were deleted but not yet overwritten.

Recovery software works best if you act quickly — the sooner you stop using your computer after deleting something, the better the chance of recovery. Every time you save a new file, read something, or install a program, you risk overwriting the deleted data. If weeks have passed since the deletion, or if you have used your computer heavily since then, recovery becomes unlikely.

Recovery software is free or low-cost, but it does not always work. Before you pay for it, try the free version to see whether it can find your files. If it finds them, you can usually pay to recover them. If it finds nothing, the data is probably gone.

When you cannot undo a change

Some changes cannot be undone no matter what you do. If you formatted a hard drive, encrypted your computer, or changed your password and forgot it, you cannot reverse those actions. If you deleted files months ago and have used your computer heavily since then, recovery software will not find them. If you never turned on System Restore or Time Machine, you have no snapshots to restore from.

In these cases, your options are limited. You can try recovery software as a last resort, but accept that it may not work. You can contact a data recovery service, but they are expensive — often hundreds of dollars — and success is not may provide. The best approach is to prevent this situation in the future by turning on System Restore or Time Machine now, before you need it.

Frequently Asked Questions

Can I undo a change I made a week ago?

Only if you used System Restore or Time Machine and took a snapshot before the change. The undo shortcut Ctrl+Z or Command+Z only works within the same program session, usually for minutes or hours. If you closed the program, the undo history is gone.

What is the difference between deleting and shift-deleting a file?

Deleting a file sends it to the Recycle Bin or Trash, where you can restore it easily. Shift+Delete on Windows or Command+Delete on Mac skips the Recycle Bin and deletes the file permanently. Recovery is still possible with recovery software, but much harder.

Will System Restore delete files I created after the restore date?

No. System Restore only reverses changes to settings, programs, and Windows files. Files you created or downloaded after the restore date stay on your computer. This makes it safe to use System Restore without losing recent work.

Is recovery software safe to use?

Yes, recovery software only reads data from your hard drive — it does not modify or delete anything. read it from the official website of the program, not from a third-party site, to avoid malware. Free versions usually let you scan and preview files before you pay to recover them.

What should I do if I cannot undo a change?

Stop using your computer if possible — every new file you save or program you install reduces the chance of recovery. Try recovery software as a free option first. If that does not work, accept the change or contact a professional data recovery service, though they are expensive and results are not may provide.