Skip to content

Remove command

Compose Generator can you help to remove services from an existing Docker Compose configuration without leaving unused networks, service dependencies or other stuff, resulting in chaos. The remove command can help you to remove a single or multiple services at once from your configuration.

Usage

Use the remove command by executing:

$ compose-generator remove [service-name]...

Use the remove command by executing:

$ compose-generator r [service-name]...

Options

You can apply following options to the remove command:

Option Short Description
--advanced -a Show questions for advanced customization
--detached -d To run the compose configuration after removing in detached mode.
--force -f Skip safety checks and delete all files that may exist.
--run -r To run the compose configuration after removing.
--with-volumes -v Also remove all associated volumes of the stated services on disk.