<p>I want to use the <a href="http://msdn.microsoft.com/en-us/library/system.enterpriseservices.internal.publish.gacremove(VS.80).aspx" rel="nofollow noreferrer">Publish.GacRemove</a> function to remove an assembly from GAC. However, I don't understand what path I should pass as an argument.</p>

<p>Should it be a path to the original DLL (what if I removed it after installing it in the GAC?) or the path to the assembly in the GAC?</p>

<p><strong>UPDATE:</strong></p>

<p>I finally used <a href="http://blogs.msdn.com/junfeng/articles/229649.aspx" rel="nofollow noreferrer">these API wrappers</a>.</p>

[{'answer_id': 45745, 'author': 'hakan', 'author_id': 3993, 'author_profile': 'https://Stackoverflow.com/users/3993', 'pm_score': 1, 'selected': False, 'text': "<p>I am not exactly sure about it but I believe GacRemove should do the same thing as gacutil  /u. So, it should be the path of your DLL. However it doesn't have to be the same DLL file. Copy of the original should suffice since what counts is the uniqueID of the DLL.</p>\n"}, {'answer_id': 45747, 'author': 'Espo', 'author_id': 2257, 'author_profile': 'https://Stackoverflow.com/users/2257', 'pm_score': 3, 'selected': True, 'text': '<p>I am using the <code>GacInstall</code> to publish my assemblies, however once installed into the gac, I sometimes delete my ‘temporary’ copy of the assemblies.</p>\n\n<p>And then, if I ever wanted to uninstall the assemblies from the gac I do not have the files at the original path. This is causing a problem since I cannot seem to get the <code>GacRemove</code> method to uninstall the assemblies unless I keep the original files.</p>\n\n<p>Conclusion: Yes, you need to specify the path to the original DLL. (And try to not move/delete it later). If you delete it, try to copy the file from the GAC to your original path and you should be able to uninstall it using <code>GacRemove</code>.</p>\n'}]
['https://Stackoverflow.com/questions/45729', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/95/']