[name] [= body]
Removes all macros matching the specified restrictions. The macro-options are the same as those in the /list command; see "/list" for details. Invisible macros will not be purged unless "-i" is specified. Remember that "macros" includes keybindings, hilites, gags, triggers, and hooks.
The standard macro library also defines the commands /purgedef, /purgebind, /purgehilite, /purgegag, /purgetrig, /purgedeft, and /purgehook, which purge macros of the appropriate type. These always use glob matching.
See: macros, triggers, patterns, attributes, library, /def, /list, /purgeworld