Skip to content

prune local #659

@tommyjcarpenter

Description

@tommyjcarpenter

What motivated this proposal?

There is already the opposite of this command, push --prune.

What is the proposed change?

I'd like a command nsc pull --prune-local that deletes any local accounts that are not in the remote server. Basically I want the reverse of push --prune.

Currently, I cannot see any easy way to do this: pull -A pulls from the remote server, but mixes with local accounts.

Who benefits from this change?

Users of a shared NATS server who may want to keep their local nsc in sync. If I sync my nsc, then an operator deletes a remote account, I'd like to (explicitly with --prune-local) be able to sync those changes.

What alternatives have you evaluated?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalEnhancement idea or proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions