How to Delete Dll File Access Denied

By Mike Benson

Dynamic Link Libraries (DLLs) are resource files that run in memory when a linked program executable launches. If you try to remove a DLL file and receive an access denied error, you will need to unload it. Once a DLL file loads into system memory to provide resource linking it will continuously run until unloaded. You can use the Command Prompt to remove a DLL file from memory and allow deletion without receiving an access denied error.

Step 1

Press the "Windows" and "R" keys simultaneously on your keyboard. This opens a "Run" box on the bottom part of your screen.

Step 2

Type "CMD" and click the "OK" button. This launches the Windows Command Prompt utility.

Step 3

Type "Regsvr32 /u /s C:\Path to file\file.dll" and press the "Enter" key. You must replace "Path to file" and "File.dll" with the actual path to your file and file name.

Step 4

Type "Exit" and press "Enter" to close the Windows Command Prompt utility.