Uninstall all Mods

If for any reason you want to uninstall all your mods, this guide will help you. Before we start, if you modded your game folder directly, your best bet will be to delete the entire GTA 5 folder and start from scratch. If you used, a mods folder, as is recommended, then read on.
 
We will use the game folder screenshot below as a reference to display the files a newly installed GTA 5 should look like, without any mods installed. There should be roughly 44 items in the folder: 3 subfolders and 41 files. This is for the Steam version
 
If your game folder is different from the picture below, ensure you don't delete any folders that mention Rockstar. Remember to backup if you're concerned, but also remember you can do a verify integrity or complete reinstall if necessary. Click on picture for full size readability.
 

From Windows Explorer, right click and from the View context menu, select Details. Next click on the Type header to sort all your files by file type. To see the file extensions, Click the View Tab at the very top of Windows Explorer and ensure the checkbox entitled File Name Extensions is checked.
 
Step 1. You can delete your mods folder and your scripts folder and any subfolders other than the 3 in the screenshot above. For example you can delete the folder called menyooStuff. Backup if you're unsure. Do not delete any files in the X64, Installer, and Update game folders (those in your root folder).

Step 2. You can now delete all asi mods as there are none in the vanilla game.

Step 3. You can delete all log files as well. You can keep the one called debug.log.

Step 4. You can delete all ini files except the one called hashes.ini
 
Now we need more caution, but again your can restore any mistakes with a verify integrity.

Step 5. You can delete exe files, if any mod ones, except the 4 GTA 5 ones shown in the screenshot above.  So don't delete those with the green V and if you do by mistake do a Verify Integrity to restore them or fish them out of the recycle bin.

Step 6. You can delete all .dll except the ones shown in the screenshot above. Be careful with this one as the game has its own dlls.

That basically does it. Keep in mind that deleting dinput8.dll alone will keep all mods from loading so effectively giving you back a non-modded game.

You might notice other files such as menyooLog.txt which are safe to delete. Again refer to the screenshot above.

When you're finished, it will be a good idea to do a verify integrity just to ensure you didn't delete anything by mistake. Also, some poorly designed mods may have replaced files in your game folder, files that need to be restored. Finally, some emulators will replace steam_api64.dll if your game is on Steam.

What NOT to delete.
Do not delete any file with an rpf extension in root folder. Do not delete the file installscript.vdf. Do not delete any files in the X64, Installer, and Update game folders.
 
Once more, if unsure backup the files or folders before doing any deletes. And one final time, you can always restore your game to its vanilla state by wiping the folder clean and doing a reinstall.
 
DO NOT DELETE
bink2w64.dll
d3dcompiler_46.dll
d3dcsx_46.dll
GFSDK_ShadowLib.win64.dll
GFSDK_TXAA.win64.dll
GFSDK_TXAA_AlphaResolve.win64.dll
GPUPerfAPIDX11-x64.dll
NvPmApi.Core.win64.dll
steam_api64.dll


Those that are easily recognized and can be uninstalled include:
dinput8.dll
ScriptHookV.dll
ScriptHookVDotNet2.dll
ScriptHookVDotNet2.xml
ScriptHookVDotNet3.dll

 
Read also:  Uninstalling an OIV Mess