docker:tldr:9477c
The command "docker secret rm" is used to remove one or more secrets in Docker Swarm mode. It takes in the name of the secrets to be removed as arguments.
In this specific command, "${secret_name1 secret_name2 ---}" is a placeholder for multiple secret names that need to be removed. The "---" is not a valid secret name and is used here to indicate that more secret names can be listed in its place.
To use the command, you need to replace "${secret_name1 secret_name2 ---}" with the actual names of the secrets you want to remove. For example, if you want to remove secrets named "db_password" and "api_key", the command would look like:
docker secret rm db_password api_key
Executing this command will delete the specified secrets from the Docker Swarm.