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
This section provides examples of how to use rpk shadow delete.
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 |
|---|---|---|
|
bool |
If set, forces a delete while there are active shadow topics; disables confirmation prompt as well. |
|
bool |
Disable confirmation prompt. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |