The zap
stanza describes a more complete uninstallation of files associated with a Cask. The zap
procedures will never be performed by default, but only if the user invokes the zap
verb:
$ brew cask zap td-toolbelt # also removes org.ruby-lang.installer
zap
stanzas may remove:
- Preference files and caches stored within the user’s
~/Library
directory. - Shared resources such as application updaters. Since shared resources may be removed, other applications may be affected by
brew cask zap
. Understanding that is the responsibility of the end user.
zap
stanzas should not remove:
- Files created by the user directly.
The form of zap
stanza follows the uninstall
stanza. All of the same directives are available. Unlike with uninstall
, however, delete:
is not discouraged in zap
.
Example: injection.rb