Cloud

rpk shadow delete

Delete a Redpanda Shadow Link.

This command deletes a Shadow Link by name. In Redpanda Cloud, every delete is a forced delete, so you can delete a Shadow Link that has active shadow topics without the --force flag.

Deleting a Shadow Link removes it 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 or the --force flag to skip the confirmation prompt. In Redpanda Cloud, skipping the prompt is the only effect of --force.

Usage

rpk shadow delete <link_name> [flags]

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

Delete a shadow link with the --force flag.

rpk shadow delete my-shadow-link --force

Flags

Value Type Description

-f, --force

bool

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

bool

Disable confirmation prompt.

Global flags

Value Type Description

--config

string

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

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.

Suggested reading