{"id":799,"date":"2008-12-19T19:38:52","date_gmt":"2008-12-19T14:08:52","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=799"},"modified":"2021-05-31T14:02:12","modified_gmt":"2021-05-31T08:32:12","slug":"delete-old-user-profile-folders-automatically","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/delete-old-user-profile-folders-automatically\/","title":{"rendered":"How to Delete Old User Profile Folders Automatically in Windows"},"content":{"rendered":"<p>Windows includes a Group Policy setting that automatically deletes the user profile folders that are older than a specified number of days. This article applies to Pro and higher editions of Windows that have the Group Policy Editor.<!--more--><\/p>\n<h2>Delete Old User Profile Folders Automatically in Windows<\/h2>\n<p>To automatically delete old user profiles that have not been used for a certain number of days, follow these steps:<\/p>\n<ol>\n<li>Launch the Group Policy Editor (<code>gpedit.msc<\/code>)<\/li>\n<li>Go to the following section:\n<pre>Computer Configuration \u2192 Administrative Templates \u2192 System \u2192 User Profiles<\/pre>\n<\/li>\n<li>Double-click <strong>Delete user profiles older than a specified number of days on system restart<\/strong><\/li>\n<li>Select <strong>Enabled<\/strong>, Specify the number of days, and click OK.<\/li>\n<\/ol>\n<p>This policy setting allows an administrator to automatically delete user profiles on system restart that have not been used within a specified number of days. Note: One day is interpreted as 24 hours after a specific user profile was accessed.<\/p>\n<p>If you enable this policy setting, the User Profile Service will automatically delete on the next system restart all user profiles on the computer that have not been used within the specified number of days.<\/p>\n<hr \/>\n<h3>Using DelProf2 to delete old user profiles<\/h3>\n<p>Another option would be to use a third-party utility named <a href=\"https:\/\/helgeklein.com\/free-tools\/delprof2-user-profile-deletion-tool\/\" target=\"_blank\" rel=\"noopener nofollow noreferrer\">DelProf2.<\/a> Delprof2 is the unofficial successor to Microsoft\u2019s Delprof which does not work with operating systems newer than Windows XP.\u00a0If you&#8217;re using Windows 7 or Windows 8\/8.1, use DelProf2 to delete old user profile folders.<\/p>\n<p><em>Delprof2 has issues with UWP apps on Windows 10. Why? Windows 10 stores per-user settings in per-machine database files that are exclusively locked (almost?) all of the time.<\/em><\/p>\n<p>Delprof2 deletes inactive user profiles. If you want to reclaim disk space just run it without parameters and it will delete all profiles except your own and some special profiles needed by the operating system (like \u201cDefault\u201d).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows includes a Group Policy setting that automatically deletes the user profile folders that are older than a specified number of days. This article applies to Pro and higher editions of Windows that have the Group Policy Editor.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-799","post","type-post","status-publish","format-standard","hentry","category-windows"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":9397,"url":"https:\/\/www.winhelponline.com\/blog\/desktop-or-folders-not-refreshing-automatically-in-windows\/","url_meta":{"origin":799,"position":0},"title":"Folders not refreshing automatically in Windows 10","author":"Ramesh","date":"May 19, 2019","format":false,"excerpt":"In File Explorer or on the desktop, when you create, delete, rename, or move a file or folder, the folder view does not refresh automatically to reflect the action. To see the changes, the user must press the F5 button on the keyboard, or right-click on the desktop or folder\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":"cleanly restart explorer via task manager","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/exit-restart-explorer-task-manager.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/exit-restart-explorer-task-manager.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/exit-restart-explorer-task-manager.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":75819,"url":"https:\/\/www.winhelponline.com\/blog\/pc-health-organization-manages-updates\/","url_meta":{"origin":799,"position":1},"title":"PC Health Check app Error &#8220;Your organization manages updates&#8221;","author":"Ramesh","date":"July 4, 2024","format":false,"excerpt":"When you run Microsoft's PC Health Check app to check if your system is compatible with Windows 11, the following message appears: Your organization manages updates on this PC Also, when you open Windows Update in Settings, the error \"Some settings are managed by your organization\" appears. Clicking \"View configured\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":"windows update policies - managed by organization","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/wu-policies-configured-settings.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/wu-policies-configured-settings.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/wu-policies-configured-settings.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2024\/07\/wu-policies-configured-settings.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":19854,"url":"https:\/\/www.winhelponline.com\/blog\/error-0x800707e7-0x3000d-upgrade-windows-10\/","url_meta":{"origin":799,"position":2},"title":"Error 0x800707E7 0x3000D during Windows Setup","author":"Ramesh","date":"November 13, 2020","format":false,"excerpt":"When you upgrade from Windows 7 or Windows 8 to Windows 10 or 11 or do a repair installation, the error 0x800707E7 \u2013 0x3000D may occur and the setup is canceled automatically. The same error may occur when installing a Feature Update (e.g., upgrading from 21H2 to 22H2). Here is\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":"nvidia updatus user account uninstall","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/11\/nvidia-update.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":6018,"url":"https:\/\/www.winhelponline.com\/blog\/delete-unused-files-older-than-x-days-windows\/","url_meta":{"origin":799,"position":3},"title":"How to Delete Files Older than N Days Automatically in Windows","author":"Ramesh","date":"December 11, 2017","format":false,"excerpt":"Windows 10 has built-in features to free up space by deleting old files in the %temp% directory and Downloads folder. Windows 10 Settings has an option (\"Storage\") which automatically clears temporary files your apps are not using, files in the Downloads that haven't been modified in the last x days,\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"windows 10 storage settings cleanup options","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/11\/storage-settings-cleanup-options.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/11\/storage-settings-cleanup-options.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/11\/storage-settings-cleanup-options.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":290,"url":"https:\/\/www.winhelponline.com\/blog\/do-not-move-special-folders-to-the-root-drive\/","url_meta":{"origin":799,"position":4},"title":"Fix: Accidentally Moved Videos or other Shell folders to D:\\ root","author":"Ramesh","date":"May 21, 2008","format":false,"excerpt":"When you relocate a special folder: Music, Pictures, Videos, Downloads, or Documents to a different drive using the Location tab in the Property sheet, make sure you mention the complete target path where you want to relocate the folder. For example, to move the Videos folder of your user profile\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"accidentally moved special folder to the root drive","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/move-special-folder-location-from-root-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/move-special-folder-location-from-root-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/move-special-folder-location-from-root-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":24048,"url":"https:\/\/www.winhelponline.com\/blog\/transfer-chrome-profile-another-computer\/","url_meta":{"origin":799,"position":5},"title":"How to Transfer Chrome Profiles to Another Computer","author":"Ramesh","date":"May 14, 2021","format":false,"excerpt":"Google Chrome's synchronize feature stores a copy of your entire browser settings in the cloud and synchronizes it with your other devices. It can sync your Apps, Bookmarks, Extensions, History, Settings, Themes, Reading List, Open Tabs, Passwords, Addresses, phone numbers, payment methods, etc. With sync, all you need to do\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.winhelponline.com\/blog\/category\/general\/"},"img":{"alt_text":"chrome transfer profile to another computer","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/05\/chrome-corrupt-data-reset-prompt.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/05\/chrome-corrupt-data-reset-prompt.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/05\/chrome-corrupt-data-reset-prompt.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2021\/05\/chrome-corrupt-data-reset-prompt.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/799","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=799"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/799\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=799"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=799"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=799"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}