remove_secret
Remove a Docker Swarm secret by ID. Verify that no running services still use the secret before removal.
Instructions
Remove a Swarm secret; requires a swarm manager.
Removing a secret does not immediately affect running service tasks — tasks that already
have the secret mounted retain access until they are restarted or the service is updated.
Use list_services and inspect each service's spec via get_service to identify
services that mount the secret before removing it (service filters do not support
filtering by secret reference). The secret id (not name) is required; retrieve it from list_secrets
or get_secret.
args: secret_id - The secret id to remove returns: bool - True after removal
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |