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 or paused shadow topics. Run rpk shadow failover first to fail over the shadow topics, or use the --force flag to delete the shadow link while its shadow topics are still active or paused.

The --force flag removes the shadow link and stops replication immediately, without waiting for in-flight data to replicate. Redpanda does not delete the shadow topics. They become regular, writable topics that keep their data and consumer group offsets, and no further data is replicated to them from the source cluster. You cannot undo this operation.

The command prompts you to confirm the deletion. Use the --no-confirm flag to skip the confirmation prompt. The --force flag also skips the confirmation prompt.

Usage

rpk shadow delete [LINK_NAME] [flags]

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

Delete a shadow link with the --force flag:

rpk shadow delete my-shadow-link --force

Flags

Value Type Description

-f, --force

-

Skip the confirmation prompt. On self-managed clusters, also delete the shadow link even if it has active or paused shadow topics, which become regular, writable topics.

--no-confirm

-

Disable confirmation prompt.

-h, --help

-

Help for delete.

--config

string

Redpanda or rpk config file; default search paths are /var/lib/redpanda/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings. See rpk -X or execute rpk -X help for inline detail or rpk -X list for terser detail.

--profile

string

Profile to use. See rpk profile for more details.

-v, --verbose

-

Enable verbose logging.