# shellcheck shell=dash

___x_cmd_webtop_image_rm(){
    local x_=""
    while [ $# -gt 0 ]; do
        case "$1" in
            -h|--help)  ___x_cmd help -m webtop image rm    ; return ;;
            --id)       x_="$2";    shift 2 ;;
            *)          break ;;
        esac
    done

    [ -n "$x_" ] || ___x_cmd_webtop_image_id_ "$1" || N=webtop M="Not found any image" log:ret:1

    ___x_cmd docker -- rmi "$x_"
    # ! ___x_cmd_runmode_allow_chatty || ___x_cmd webtop image ls
}
