Select to view content in your preferred language

Delete Add-ins Script

1956
1
01-06-2016 05:03 PM
CharlesMacleod
Esri Regular Contributor
1 1 1,956

From time to time I need to delete all the Pro Add-ins off my machine - especially if I am developing/testing/debugging and end up cluttering Pro's ribbons with all kinds of Add-ins - all in varying states of completion.

To do it by hand, you navigate to your C:\Users\-- your username --\Documents\ArcGIS\AddIns\ArcGISPro folder and delete all the guid-ed subfolders. That gets to be tedious so I wrote this shell script. To use it, create a .bat or .cmd file and add a shortcut to it on your desktop. Add this code into it - be sure to replace the "-- your username --" placeholder with your username.

DeleteProAddins.cmd:

echo off

rem http://stackoverflow.com/questions/1502913/how-to-delete-all-files-and-folders-in-a-folder-by-cmd-ca...

rem

echo Executing del /q "C:\Users\-- your username --\Documents\ArcGIS\AddIns\ArcGISPro\*"

echo for /d %%x in ("C:\Users\-- your username --\Documents\ArcGIS\AddIns\ArcGISPro\*") do @rd /s /q %%x

del /q "C:\Users\-- your username --\Documents\ArcGIS\AddIns\ArcGISPro\*"

for /d %%x in ("C:\Users\-- your username --\Documents\ArcGIS\AddIns\ArcGISPro\*") do @rd /s /q %%x

echo

echo Done

pause

1 Comment
JustinOdell
Frequent Contributor

I've noticed that add-ins can be installed under legacy versions of ArcGIS as well, I'm assuming depending on what version the add-in itself it was created in.

For instance, if you are using 10.2, and have never installed previous versions of ArcGIS, it's possible for custom add-ins to be installed under

"C:\Users\-- your username --\Documents\ArcGIS\AddIns\Desktop10.0

C:\Users\-- your username --\Documents\ArcGIS\AddIns\Desktop10.1"

At leat this is what I have found. Be sure to check all folders for add-ins.  It's annoying when the 'remove' or 'delete' button is disabled for custom add-ins and you have to manually find where it's been installed on the machine and delete from that location.