Zudoku
unikraft services

unikraft services delete

Remove a service.

Code
unikraft services delete [<target> ...] [flags]

Examples

Delete a service group by name or UUID:

TerminalCode
unikraft service delete demo-service

Drain and delete the instances of a service group, then delete it:

TerminalCode
unikraft service delete demo-service --drain

Delete a service group once its instances are gone:

TerminalCode
unikraft service delete demo-service --wait-empty

Options

Code
--all Remove all services. Prompts for confirmation. -D, --drain Stop the instances in the service, which drains their connections, then delete them and the service. Cannot be used with --all or --filter. --drain-timeout DRAIN-TIMEOUT Time each instance gets to finish its connections before --drain stops it. 0 to not drain. (default 30s) -f, --field FIELD Specify which fields to include in the output. --filter FILTER Filter services to remove. Prompts for confirmation. --force Do not prompt for confirmation when using --all or --filter. -o, --output OUTPUT Output format. One of: kv, table, json, yaml, raw, quiet, template. --wait-empty Wait for the service to have no instances before removing it. Waits with no limit unless --timeout is set. Cannot be used with --all or --filter.

Options inherited from parent commands

Code
--config file Path to the configuration file. --log-level level Set the logging level. (default info) --log-type type Set the log type. (default text) --profile name Set the current profile. --telemetry Toggle usage analytics. (default true) --timeout duration Set a deadline for the command (e.g. 30s, 5m, 1h).

See Also

Last modified on