Is it possible to catch uninstalling plugin event?

My plugin does some Jira configuration before installation.
I want to save my settings if plugin will be disabled.
And I want to clear my settings if plugin will be removed.

Example below show how to catch both disable and remove plugin events.

public class Uninstaller implements DisposableBean {
    /** Called when the plugin has been disabled or removed. */
    @Override
    public void destroy() throws Exception {}
}

I want to catch only remove event. Is it possible?

1 answer

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in United States

Administrators Cleanup

Good morning, After a long weekend cleaning up, I am still in the cleanup mode 😊. I am curious to know: When do you feel the urgency to cleanup your Atlassian Tools? How many times do y...

44 views 1 1
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you