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!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...