Windows - Unload DLL from cache

April 2018


Once an application launched, your OS stores all related DLL file to be reactivated at next startup.
These DLLs are very high in terms of memory size (stays on memory) even after shutting down.
There are many software for managing memory which also use memory.


Below is a simple tip of tips how to force memory for removing unused DLL.
Note: It is recommended to make a back up of the registry before proceeding with any configuration.
Back up of the registry
  • Open the registry editor. (Start <Run <Regedit)
  • Scroll to: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Explorer
  • Click on Edit <New <then DWORD Value.
  • Create the DWORD value in the naming AlwaysUnloadDll.
  • Once "AlwaysUnloadDll" created, right-click this value, then choose "edit".
  • Set the value data to 1, and then click OK.
  • Close the Registry Editor and restart the computer.
  • Now unused DLLs will be removed from the closure of programs.
Published by aakai1056. Latest update on April 7, 2010 at 07:36 AM by jak58.
This document, titled "Windows - Unload DLL from cache," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (
Running a pirated version of Windows - How to make it legal?
How to free up space on the system partition?