rpk shadow delete
Delete a Redpanda shadow link.
This command deletes a shadow link by name. By default, you cannot delete a shadow link that has active shadow topics. Use rpk shadow failover first to deactivate topics before deletion, or use the --force flag to delete the shadow link and failover all its active shadow topics.
The command prompts you to confirm the deletion. Use the --no-confirm flag to skip the confirmation prompt. The --force flag automatically disables the confirmation prompt.
Deleting a shadow link with --force permanently removes all shadow topics and stops replication. This operation cannot be undone.
|
Examples
Delete a shadow link:
rpk shadow delete my-shadow-link
Delete a shadow link without confirmation:
rpk shadow delete my-shadow-link --no-confirm
Force delete a shadow link with active shadow topics:
rpk shadow delete my-shadow-link --force
Flags
| Value | Type | Description |
|---|---|---|
|
- |
If set, forces a delete while there are active shadow topics; disables confirmation prompts as well. |
|
- |
Disable confirmation prompt. |
|
- |
Help for delete. |
|
string |
Redpanda or |
|
stringArray |
Override |
|
string |
Profile to use. See |
|
- |
Enable verbose logging. |