Hi,
I removed an add-on manually by deleting the folder $SPLUNK_HOME/etc/apps/TA-myProject. But now, i'm having an issue when i try to import the same project. Here is the error message :
The 'TA-myProject' add-on project could not be imported because an add-on with this name already exists.
Could you please help ?
Many thanks in advance
Try running on the CLI the following command: splunk disable app TA-myProject
regards
And then remove any user-specific app directories specifically created for your app by deleting the files specified by: $SPLUNK_HOME/splunk/etc/users/*/TA-myProject
What i wanted to do initially is to create a git repository with my add-on folder TA-myProject so another team-mate can clone it inside $SPLUNK_HOME/etc/apps and start collaborating, this is why i dropped the add-on folder (TA-myProject) and tried to clone it from github but it didn't work
Regards
Not sure if this was ever solved, but if you remove the app from $SPLUNK_HOME/etc/app/your_app and under any user directories, and remove $SPLUNK_HOME/etc/app/splunk_app_addon-builder, then reinstall the splunk app add-on builder and restart splunk, you should be able to re-import your app no problem.
I'm not sure what remnants get left behind in one of the app add-on builder files, but this worked for me.
Hi,
I ran the command splunk disable app TA-myProject, it asked for the user/password and restarted
I checked after that in $SPLUNK_HOME/etc/users/*/ and there were no folders with the name TA-myProject
Regards
DId you restart Splunk after deleting the folder?
Hi Richgallow, thanks for reaching out.
Yes, i did restart Splunk after that