How to Undo Deleted Text on PC in Windows (2024)

Are you curious about how to recover deleted text on computers? Check out this post to recover notepad files that you may have inadvertently deleted.

 Download for Win Recovery Rate 99.7%
 Download for Mac Trustpilot Rating 4.7

Page Table of Contents

Updated By


Written By


Updated on

20 May 2024

Min Reading

9 Min

undo deleted text

You can undo a deleted text you are working on or undo your past operations by simultaneously pressing the Ctrl and Z keys.

In case you are unable to undo the deletion using the keyboard shortcut Ctrl + Z, you have the option to right-click within the folder and choose the "Undo delete" option.

It can be annoying to lose crucial text and data, particularly if you have been working on the material for a long. Fortunately, there are many tools and features in Windows that let you undo a deleted text. In a matter of seconds, you can retrieve lost content and resume working on your project. You won't ever have to be concerned about losing important information again because deleted text can be restored.

Undo Deleted Text Files with Data Recovery Software

Lost text file? Don't be worried. When you delete the text, the space it uses is released, and the user may no longer obtain it. This just removes the surface information of the access path. It truly stays on the disk until new data in the same place permanently overwrites it. Thus, you can successfully restore the text file as long as no new data has overwritten it.

Recovering deleted text files only requires a few clicks when utilizing recovery software. I suggest using the EaseUS Data Recovery Wizard Pro. This free data recovery program offers simple and quick data recovery options. 

 Download for Win Recovery Rate 99.7%
 Download for Mac Trustpilot Rating 4.7

  • Devices: Hard disk, RAID, SSD, USB, SD card, PC/laptop, etc.
  • OS: Windows Server2019/2016/2012/2008/2003, Windows 10/8.1/8/7/Vista/XP.
  • File Types: It supports every kind of lost file, including compressed files, emails, documents, audio, movies, and photo recovery.

Here are the steps of how to recover deleted text on PC with the help of EaseUS Data Recovery Wizard Pro:

Step 1. Choose the exact file location and then click the "Search for Lost Data" button to continue.

select the location to scan for deleted files

Step 2. After the process, locate the deleted or lost files in the left panel using the "Path" or "Type" feature. Or, you can apply the "Filter" feature to find the deleted files.

check the results

Step 3. Click the "Recover" button and save the restored files – ideally, it should be different from the original one. You can choose a cloud storage, such as OneDrive, Google Drive, etc., and click "Save" to save your recovered files.

recover deleted files

Recover Unsaved Notepad (TXT) Files on Windows

How to Recover Unsaved Notepad (TXT) Files on Windows 11/10

You can recover unsaved Notepad on Windows with this guide. It explains in great detail on how to recover unsaved or deleted TXT files. Read more >>

If you find this tool helpful, please share it with others on social media to assist them in overcoming this common challenge.


Press Ctrl+Z Keys to Undo Text Deletion

It's okay if you want to undo the deletion without the third-party software. You can undo the deletion of the text files by typing Ctrl+Z on your keyboard.


After you hit the Delete button on your PC, you can try this to recover the deleted text.

Click the "Undo" button from the toolbar at the top left of the Microsoft Word, Excel, PowerPoint, etc. program if you want to retrieve typed content that you just unintentionally deleted from Windows.

After you click Save and exit the document, some actions become irreversible and lose the Undo memory. Without a backup copy of the file, it is not possible to reverse the changes.  

Restore Deleted Text via Command Prompt

Technical know-how is required to recover inaccessible files if your device has an auto-recovery feature. To recover the txt files, you can recover the temp files.

Step 1. Press the "Windows" button to open the Start menu.

Step 2. Type %AppData% in the search bar.


Step 3. To get to C:\Users\USERNAME\AppData\Roaming, click "Enter".

Step 4. Type the file's filename into the search bar to retrieve it.

file's filename

Undo Deleted Text with Backup on PC

If you are wondering how to undo a deleted text from Microsoft Documents instead of Notepad, you can try to recover them with the backups. The VBA code provided below makes it easy to back up the spreadsheet.

Step 1. Start the Microsoft Visual Basic Application window by pressing Alt + F11 while keeping your original data in the worksheet.

Step 2. Copy and paste the following VBA code into the Module window after selecting "Insert" > "Module" in the Microsoft Visual Basic Application window.

Step 3. Press the F5 key to execute the code. After that, a backup worksheet is made with the exact identical data as the original worksheet.

Press the F5 key to execute the code


Still curious? Click here to learn about How to Recover Deleted Files Without Backup in Windows 10/11.

Final Words

This page provides a thorough introduction and instructions on how to undo a deleted text. You should not pass up EaseUS Data Recovery Wizard Pro if you want to rapidly and simply recover lost files.

If something seems unclear to you, kindly leave a comment. Please let us know if you are aware of any more choices that we might have missed. Consider selecting EaseUS Data Recovery Wizard for additional file recovery software requirements.

 Download for Win Recovery Rate 99.7%
 Download for Mac Trustpilot Rating 4.7

How to Undo Deleted Text FAQs

If you still have some questions about how to undo a deleted text, check the quick answers below to help yourself out:

1. How do I undo the typing I accidentally deleted?

Ctrl + Z can be used to reverse an activity. Use Ctrl + Y to undo a previously performed action.

2. Can you undo deleted texts?

Your initial course of action should be to check the Recycle Bin since it is a simple and quick method of recovering messages. Restoring deleted texts from a backup could be a possibility if you have allowed automatic backups on your Android phone. Google offers backup services via Google One and the Messages app.

3. How do I recover something I accidentally deleted?

  • Examine the Recycle Bin. Navigate to the File and Open the Control Panel.
  • If the file is not located in the recycling bin, it may still be on your computer in another location.
  • Employ a data recovery program - EaseUS Data Recovery Wizard Pro.

4. How do I get back text I accidentally deleted in Word?

  • In Microsoft Word, go to File / Manage Document and choose the File tab.
  • After selecting "Document Management," pick "Recover Unsaved Documents."
  • The new window will display a list of all unfinished Word documents.
  • After choosing the files you wish to see, click Open.
  • Updated by

    Cedric Grantham is a senior editor and data recovery specialist of EaseUS. He mainly writes articles and how-to tips about data recovery on PC and Mac. He has handled 10,000+ data recovery cases and is good at data recovery of NTFS, FAT (FAT32 and ExFAT) file systems, and RAID structure reorganization. …
  • Written by

    Jaden is one of the editors of EaseUS, who focuses on topics concerning PCs and Mac data recovery. Jaden is committed to enhancing professional IT knowledge and writing abilities. She is always keen on new and intelligent products.…
Why Trust EaseUSEditor Reviews


Years of experience


Countries and regions

72 Million+


4.7 +

Trustpilot Score

Data Recovery Service