secret_remove
Remove a Docker Swarm secret via swarm manager. Running tasks retain access until restarted.
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 service_list and inspect each service's spec via service_inspect to identify
services that mount the secret before removing it (service filters do not support
filtering by secret reference).
args: id_or_name - The secret id or name to remove returns: bool - True after removal
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |