Dynamic Link Library (DLL) files are files that are stored on your computer and allow programs to share code in order to perform certain tasks. The majority of DLL files are needed to run programs on your computer, but there are some malicious programs that consist of DLL files that can damage your computer or can allow intruders to gain access to your machine. DLL files must be unregistered from the registry before being removed. Here are two methods to unregister and remove unwanted DLL files.
Method 1 of 2: Delete the file using Windows
Step 1. Locate the DLL file you want to unregister and remove
- Click "Start" in the lower left corner of the screen on the desktop.
- Click on "Search" from the menu.
- Choose “All Files and Folders”.
- Enter the name of the DLL file in the search field and click "Search".
- Write down or remember the path of the DLL file you want to remove. The path tells you where the file is located on your computer.
Step 2. Back up the DLL file you are going to delete, in case you make a mistake
- Follow the path of the DLL file to find its location.
- Right click on the file, then click "Copy."
- Decide where you want to place the file, right click, then click "Paste". It is recommended that you place the file in an obvious location, such as on the desktop.
Step 3. Unregister the DLL file
- Start by clicking "Start" in the lower left corner of your screen on the desktop. Then select the "Run" command.
- In the field called "Open," type the following text exactly as it is written here: regsvr32 / u C: \ Windows \ System32 \ dllname.dll. Replace "dllname" with the name of the dll file you want to remove, and click "OK."
- Click "OK" when you receive an alert message that says you have successfully unregistered the DLL file.
Step 4. Remove the DLL file
Right click on the DLL file you want to remove and select "Remove." The file should now be in your Recycle Bin
Method 2 of 2: Delete the file using the command prompt
Step 1. Unregister the DLL file
- Click the "Start" button in the lower left corner of your screen on the desktop.
- Click on the “Run” command.
- In the field called "Open", type "cmd" then press "OK".
- Type "CD" for the current directory. Press "Enter".
- Type the following text precisely: regsvr32 / u filename.dll. Insert the name of the DLL file that you want to unregister in place of "filename". Press "Enter". The DLL file is now unregistered.
Step 2. Remove the DLL file
- Right click on the dll file you want to delete
- Select "Remove". The DLL file should now be in your Trash.
- Once you are absolutely sure that you have deleted an unwanted DLL file and your computer has no issues, you can safely delete the backup DLL file that was saved on your computer.
- Make sure to always back up the file you want to delete. If you find that you have mistakenly deleted the incorrect file and essential programs stop working, you will be happy to have a backup.
- Always unregister a DLL file before removing it. If you just delete it, your computer will think it still exists unless it has been unregistered first.