diff --git a/server/activate.go b/server/activate.go index 47205ef..94218a3 100755 --- a/server/activate.go +++ b/server/activate.go @@ -61,19 +61,7 @@ func (p *Plugin) OnActivate() error { func (p *Plugin) OnDeactivate() error { - teams, err := p.API.GetTeams() - if err != nil { - return errors.Wrap(err, "failed to query teams OnDeactivate") - } - p.Stop() - - for _, team := range teams { - if cErr := p.API.UnregisterCommand(team.Id, CommandTrigger); cErr != nil { - return errors.Wrap(cErr, "failed to unregister command") - } - } - p.activated = false return nil