Files
moby/docs/reference/commandline/network_prune.md
Misty Stanley-Jones 68e914ce62 Standardized formatting of CLI reference commands
Command name should be a H1

Only Description, Examples, and Related Commands should be H2

Changed 'Related information' heading to 'Related commands' since 99% it is only linking commands

Added some examples where relevant

Signed-off-by: Misty Stanley-Jones <misty@docker.com>
(cherry picked from commit 52df69f00d)
2017-04-03 15:12:33 -07:00

1.1 KiB

title, description, keywords
title description keywords
network prune Remove unused networks network, prune, delete

network prune

Usage:	docker network prune [OPTIONS]

Remove all unused networks

Options:
  -f, --force   Do not prompt for confirmation
      --help    Print usage

Description

Remove all unused networks. Unused networks are those which are not referenced by any containers.

Examples

$ docker network prune

WARNING! This will remove all networks not used by at least one container.
Are you sure you want to continue? [y/N] y
Deleted Networks:
n1
n2