Marks an addon as disabled. The addon will remain active until the player logs out and back in or reloads the UI (see ReloadUI()). Changes to the enabled/disabled state of addons while in-game are saved on a per-character basis.
See also Addon-related functions.
Signature:
DisableAddOn("name", "character") or DisableAddOn(index, "character")
Arguments:
name- Name of an addon (name of the addon's folder and TOC file, not the Title found in the TOC) (string)index- Index of an addon in the addon list (between 1 andGetNumAddOns()) (number)character- The name of the character (without realm) whose setting to modify. Pass true to apply to all characters on the current realm ('All' setting in default UI). (string)