snap remove

manpage

執行

$ man snap

可以找到一段說明

COMMANDS

...略...

   remove
       Remove a snap from the system

       The remove command removes the named snap from the system.

       The snap's data is currently not removed; use purge for that. This behaviour will change before 16.04 is final.

help

執行

$ snap -h

可以找到一段說明

Usage:
 snap [OPTIONS] <command>

Help Options:
 -h, --help  Show this help message

Available commands:

...略...

 remove      Remove a snap from the system

執行

$ snap remove -h

或是執行

$ snap remove --help

則會顯示

Usage:
  snap [OPTIONS] remove <snap>

The remove command removes the named snap from the system.

The snap's data is currently not removed; use purge for that. This behaviour
will change before 16.04 is final.

Help Options:
  -h, --help        Show this help message

指令範例

執行

$ sudo snap remove hello-world

再執行

$ snap list

顯示

Name         Version               Developer
ubuntu-core  16.04+20160419.20-55  canonical