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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...