Getting Data In

Deleting an add-on created by Add-on builder: have you seen the following error?

mferjani
New Member

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

0 Karma

larmesto
Path Finder

Try running on the CLI the following command: splunk disable app TA-myProject
regards

0 Karma

larmesto
Path Finder

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

0 Karma

mferjani
New Member

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

0 Karma

tscanlin
New Member

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.

0 Karma

mferjani
New Member

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

0 Karma

richgalloway
SplunkTrust
SplunkTrust

DId you restart Splunk after deleting the folder?

---
If this reply helps you, Karma would be appreciated.
0 Karma

mferjani
New Member

Hi Richgallow, thanks for reaching out.
Yes, i did restart Splunk after that

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

 (view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...