Search code examples
cassandrapycassa

pycassa remove specific key from super column


I know how to remove an entire super column, but not an individual key within. My google kung fu has failed me.

so, to remove a super column:

cf_accounts.remove('key', ['super_column'])

Am I barking up the wrong tree?

Help appreciated.


Solution

  • You need to use the super_column parameter.

    cf.remove('key', super_column='super_column', columns=['sub_column'])
    

    With that said, @the paul's advice is definitely sound.