DeleteShards

vtctldclient DeleteShards

Deletes the specified shards from the topology.

Synopsis

Deletes the specified shards from the topology.

In recursive mode, it also deletes all tablets belonging to the shard. Otherwise, the shard must be empty (have no tablets) or returns an error for that shard.

  1. vtctldclient DeleteShards [--recursive|-r] [--even-if-serving] [--force|-f] <keyspace/shard> [<keyspace/shard> ...]

Options

  1. --even-if-serving Remove the shard even if it is serving. Use with caution.
  2. -f, --force Remove the shard even if it cannot be locked; this should only be used for cleanup operations.
  3. -h, --help help for DeleteShards
  4. -r, --recursive Also delete all tablets belonging to the shard. This is required to delete a non-empty shard.

Options inherited from parent commands

  1. --action_timeout duration timeout for the total command (default 1h0m0s)
  2. --server string server to use for connection (required)

SEE ALSO

  • vtctldclient - Executes a cluster management command on the remote vtctld server.