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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...