Forum Discussion

sal65535's avatar
sal65535
New Contributor
3 months ago
Solved

Can't delete tags from CLI

1Password CLI version 2.30.3
1Password client version 8.10.60 for Linux (PRODUCTION channel)

When trying to overwrite items tag from the op command, the below unexpected behavior happens.

# Getting the edit subcommand help
op item edit --help

...
  -h, --help                         help for edit
      --reveal                       Don't conceal sensitive fields.
      --tags tags                    Set the tags to the specified (comma-separated) values. An empty value will remove all tags.
      --template string              Specify the filepath to read an item template from.
...

# Tags are not removed
op item edit 'Test Tag CLI' '--tags='

# Tags are not removed
op item edit 'Test Tag CLI' --tags='empty'

# Tags are not removed
op item edit 'Test Tag CLI' --tags ""

# Tags are not removed
op item edit 'Test Tag CLI' --tags null

# Tags are not removed
op item edit 'Test Tag CLI' --tags=null

How can I perform the tags deletion from 1Password CLI?

1 Reply

  • Hello sal65535! 👋

    I'm sorry that you're unable to remove tags from an item using the 1Password CLI. This is a known issue that our developers are aware of and are tracking. For the time being, the following command will work to remove tags from an item: 

    op item edit "itemname" tags=

    I've filed an issue to have our docs team look into updating our support documentation. I'm sorry for the disruption to your work. 

    -Dave

    #3866