chamber icon indicating copy to clipboard operation
chamber copied to clipboard

Feature Request: chamber delete(rm) <service> or <service> <key>

Open Jinkxed opened this issue 9 years ago • 4 comments

Basically do the opposite of write with the added functionality of deleting an entire service if applicable.

IE: chamber delete service would delete all keys with that namespace or chamber delete service key would delete just that specific key

Addition it will have to delete in batches of 10 due to the AWS constraint: Member must have length less than or equal to 10

Jinkxed avatar Aug 21 '17 20:08 Jinkxed

Seconded. Is there really no way to delete something once it's been added?

jleclanche avatar Sep 25 '17 22:09 jleclanche

https://github.com/segmentio/chamber/pull/40 added the ability to delete individual keys via chamber delete <key> <service>. Available in release v1.11.0+

dfuentes avatar Nov 27 '17 18:11 dfuentes

Is there a "correct" way to remove an entire service

at the moment i'm doing

chamber list service | tail -n +1 | awk '{print $1}' | xargs -n1 chamber delete service

when we are taking down review apps

thattomperson avatar Jan 24 '19 00:01 thattomperson

@thattomperson That solution looks fine to me. I would certainly accept a PR for a delete-service command, but it's not top priority for us atm

nickatsegment avatar Jan 24 '19 17:01 nickatsegment