Skip to main content
February 26, 2025
Solved

Can't delete tags from CLI

  • February 26, 2025
  • 1 reply
  • 138 views

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?

Best answer by 1P_Dave

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

1 reply

1P_Dave
1P_DaveAnswer
1Password Employee
February 28, 2025

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