{"id":27716,"date":"2022-08-29T14:00:00","date_gmt":"2022-08-29T08:30:00","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=27716"},"modified":"2022-08-29T14:42:19","modified_gmt":"2022-08-29T09:12:19","slug":"disable-undo-redo-feature-in-windows","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/disable-undo-redo-feature-in-windows\/","title":{"rendered":"How to Disable the Undo\/Redo Feature for File Operations in Windows"},"content":{"rendered":"<p>When you perform a file operation (e.g., delete, rename, copy, or move a file or folder) in Windows, you&#8217;ll see the corresponding &#8220;Undo&#8230;&#8221; option in the desktop right-click menu. One of the options, &#8220;Undo Copy&#8221;, &#8220;Undo Move&#8221;, &#8220;Undo Rename&#8221;, or &#8220;Undo Delete&#8221; is shown in the context menu.<!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27717\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/08\/undo-redo-explorer.png\" alt=\"disable undo and redo in explorer shell\" width=\"272\" height=\"352\" \/><\/p>\n<p>Similarly, when you undo a rename\/cut\/copy\/paste operation using the context menu or using the <kbd>Ctrl<\/kbd> + <kbd>Z<\/kbd> keyboard shortcut, you&#8217;ll see the corresponding &#8220;Redo&#8230;&#8221; entry context menu &#8212; e.g., Redo Copy, Redo Rename, Redo Delete, Redo Move.<\/p>\n<p>Pressing <kbd>Ctrl<\/kbd> + <kbd>Z<\/kbd> in the Explorer shell (this includes the folder view, taskbar, and the desktop), will Undo the last file operation, such as the delete, rename, move, or copy. Likewise, <kbd>Ctrl<\/kbd> + <kbd>Y<\/kbd> will Redo the file operation.<\/p>\n<p>The Undo and Redo feature, however convenient it may be, can also be a big obstacle for many users. Sometimes, users tend to inadvertently click on the Undo or Redo option via the context menu, which results in an undesirable event. The worst thing is that the last file operation may have happened hours back, and you don&#8217;t even know what exactly the accidental undo\/redo command performed. It happens silently, and the user is not informed about the details of the undo\/redo operation. The user might not even notice that it happened.<\/p>\n<p>If you want to disable the &#8220;Undo&#8221; and &#8220;Redo&#8221; features (i.e., the &#8220;Undo&#8221; and &#8220;Redo&#8221; options in the context menu, Undo and Redo icons in <a href=\"https:\/\/www.winhelponline.com\/blog\/customize-backup-quick-access-toolbar-settings-file-explorer\/\">Quick Access Toolbar<\/a> in File Explorer, and the Ctrl +Z and Ctrl +Y hotkeys in Windows), there is a simple and undocumented registry edit. <!--more--><\/p>\n<h2>Disable &#8220;Undo&#8221; &amp; &#8220;Redo&#8221; Feature in Windows<\/h2>\n<p>To disable the Undo and Redo features (for file operations) in the Explorer or Shell environment, follow these steps:<\/p>\n<ol>\n<li>Start the Registry Editor (<code>regedit.exe<\/code>)<\/li>\n<li>Go to the following key:\n<pre>HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced<\/pre>\n<\/li>\n<li>Create a DWORD value in the right pane, and name it as <code><strong>MaxUndoItems<\/strong><\/code><\/li>\n<li>Leave the <code>MaxUndoItems<\/code> to <code>0<\/code>.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27718\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/08\/undo-redo-explorer-disable.png\" alt=\"disable undo and redo file operations in windows\" width=\"574\" height=\"195\" \/><em>(This registry value dictates the number of undo and redo levels supported in the Explorer shell. For instance, if it&#8217;s set to 2, Explorer remembers the last 2 file operations only. If set to 0, it means Undo and Redo features are disabled.)<\/em><\/li>\n<li>Exit the Registry Editor.<\/li>\n<li><strong>Important:<\/strong> Log off and log back into your user account. Alternatively, <a href=\"https:\/\/www.winhelponline.com\/blog\/exit-explorer-restart-windows-10-8\/\">restart the Explorer shell<\/a> for the changes to take effect immediately.<\/li>\n<\/ol>\n<p>This removes the &#8220;Undo&#8221; and &#8220;Redo&#8221; options in the context menu and its corresponding <kbd>Ctrl<\/kbd> + <kbd>Z<\/kbd> and <kbd>Ctrl<\/kbd> + <kbd>Y<\/kbd> hotkeys. The Undo and Redo icons in the Quick Access Toolbar in File Explorer will be grayed out.<\/p>\n<div class=\"qt\">\n<h4>Command-line Method<\/h4>\n<p>To accomplish the above using the command-line, open a Command Prompt window and type:<\/p>\n<pre>reg add \"HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" \/v MaxUndoItems \/d 0 \/t REG_DWORD \/f<\/pre>\n<p>To revert the setting back, run:<\/p>\n<pre>reg delete \"HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\" \/v MaxUndoItems \/f<\/pre>\n<\/div>\n<h4>Editor&#8217;s note<\/h4>\n<p>The above registry edit applies only to the Explorer shell; it does not remove the undo and redo feature or the <kbd>Ctrl<\/kbd> + <kbd>Z<\/kbd> and <kbd>Ctrl<\/kbd> + <kbd>Y<\/kbd> hotkeys in individual applications, such as Office. If you wish to restore the undo and redo feature later on, then delete the <code>MaxUndoItems<\/code> registry value and re-login to your account. The registry edit should work in all Windows versions. I last tested this on Windows 10 21H2.<\/p>\n<hr>\n<h3>Explorer Undo and Redo For VS Code Users<\/h3>\n<p>To disable the undo and redo options for file operations in the &#8220;Visual Studio Code&#8221; application&#8217;s Explorer panel, you can use the new setting <code>explorer.confirmUndo<\/code> introduced in <a href=\"https:\/\/github.com\/microsoft\/vscode-docs\/blob\/vnext\/release-notes\/v1_64.md#explorer-undo-confirmenable-undo\" target=\"_blank\" rel=\"noopener\">VS Code<\/a> version 1.64.<\/p>\n<h4>Explorer: Confirm and disable Undo<\/h4>\n<ol>\n<li>The File Explorer has long supported an Undo stack to revert file and folder edits (rename, cut\/copy\/paste, move, import, etc.). Some users find this functionality unexpected, so there is now a setting to disable Undo in the Explorer (<code>explorer.enableUndo<\/code>).<\/li>\n<li>Additionally, a new setting (<code>explorer.confirmUndo<\/code>) was added to configure how frequently the Explorer will prompt for confirmation when performing an Undo. By default, the Explorer will prompt more frequently than before to ensure destructive undoing doesn&#8217;t accidentally happen, but this can be changed to the old behavior with the value &#8220;light&#8221;, or set to &#8220;verbose&#8221; to prompt before all Undo actions.<\/li>\n<\/ol>\n<p>You can find a short video about the above features in the following tweet.<\/p>\n<p>https:\/\/twitter.com\/mattbierner\/status\/1500931795977605121<\/p>\n<hr>\n<p><em>I hope the undocumented <code>MaxUndoItems<\/code> registry value helped you disable the undo and redo feature in Explorer. Let&#8217;s know your comments.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you perform a file operation (e.g., delete, rename, copy, or move a file or folder) in Windows, you&#8217;ll see the corresponding &#8220;Undo&#8230;&#8221; option in the desktop right-click menu. One of the options, &#8220;Undo Copy&#8221;, &#8220;Undo Move&#8221;, &#8220;Undo Rename&#8221;, or &#8220;Undo Delete&#8221; is shown in the context menu.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[7],"tags":[441,877],"class_list":["post-27716","post","type-post","status-publish","format-standard","hentry","category-windows","tag-registry","tag-tweaks"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":74901,"url":"https:\/\/www.winhelponline.com\/blog\/replace-procexp-with-task-manager\/","url_meta":{"origin":27716,"position":0},"title":"How to Replace Task Manager with Process Explorer","author":"Ramesh","date":"April 22, 2024","format":false,"excerpt":"Windows Sysinternals Process Explorer is an advanced process management utility often called \"Task Manager on steroids\". If you want to replace Task Manager with Process Explorer, this article is for you. After following the instructions, Process Explorer will launch whenever you launch Task Manager using Ctrl + Shift + Esc\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"replace taskmgr with process explorer","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/procexp-replace-taskmgr.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/procexp-replace-taskmgr.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/04\/procexp-replace-taskmgr.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":341,"url":"https:\/\/www.winhelponline.com\/blog\/add-select-all-option-to-the-context-menu-in-windows-vista\/","url_meta":{"origin":27716,"position":1},"title":"Add Select All option to the context menu in Windows","author":"Ramesh","date":"June 21, 2008","format":false,"excerpt":"To select all files in a folder or the Desktop, you use the CTRL + A keyboard shortcut. If you're an avid mouse user and need the select all functionality in the right-click menu in Windows, here is a registry tweak. This tweak adds the \"Select All\" option in the\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/selectall.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4753,"url":"https:\/\/www.winhelponline.com\/blog\/master-list-keyboard-shortcuts-windows-10\/","url_meta":{"origin":27716,"position":2},"title":"Master List of Keyboard Shortcuts for Windows 10","author":"Ramesh","date":"December 3, 2016","format":false,"excerpt":"This page lists the complete keyboard shortcuts for Windows 10. RELATED: Master List of Keyboard Shortcuts in Windows 11 Contents Windows 10 (General) Windows Logo key (Winkey) Command Prompt Dialog box File Explorer Virtual Desktops Taskbar Apps Accessibility Microsoft Surface Hub Continuum for phones Windows 10 Keyboard shortcuts Press this\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":907,"url":"https:\/\/www.winhelponline.com\/blog\/disable-empty-recycle-bin-confirmation-windows\/","url_meta":{"origin":27716,"position":3},"title":"Empty the Recycle Bin Without the Confirmation Window Showing Up","author":"Ramesh","date":"June 29, 2009","format":false,"excerpt":"When emptying the contents of your Recycle Bin, you'll be asked for confirmation as below. Here is a registry edit to turn off the prompt in Windows 7, 8 and Windows 10, using NirCmd. This registry edit replaces the Empty Recycle Bin command in the right-click menu and the ribbon\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"recycle bin delete confirmation prompt","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2009\/06\/rbin-silent-empty.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":26081,"url":"https:\/\/www.winhelponline.com\/blog\/master-list-keyboard-shortcuts-windows-11\/","url_meta":{"origin":27716,"position":4},"title":"Master List of Keyboard Shortcuts in Windows 11","author":"Ramesh","date":"February 2, 2022","format":false,"excerpt":"This page has the complete list of keyboard shortcuts for Windows 11. Keyboard Shortcuts Windows 11 (General) Windows Logo key (Winkey) Command Prompt Dialog box File Explorer Virtual Desktops Taskbar Settings Accessibility Windows 11 Master List of Keyboard Shortcuts General Shortcuts Press this key To do this Ctrl + X\u2026","rel":"","context":"In &quot;Windows 11&quot;","block_context":{"text":"Windows 11","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-11\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1278,"url":"https:\/\/www.winhelponline.com\/blog\/windows-search-error-2-windows-8-1\/","url_meta":{"origin":27716,"position":5},"title":"Fix Windows Search Service Error 2 After Upgrading to Windows 8.1","author":"Ramesh","date":"November 29, 2013","format":false,"excerpt":"When you start the Windows Search service in your Windows 8.1 computer, the following error may occur and the search service fails to start.Windows could not start the Windows Search service on Local Computer.Error 2: The system cannot find the file specified.This problem happens especially after running a registry cleaner\u2026","rel":"","context":"In &quot;Windows 8&quot;","block_context":{"text":"Windows 8","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-8\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/windows-srch-err-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/windows-srch-err-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/windows-srch-err-2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/27716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=27716"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/27716\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=27716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=27716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=27716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}