I'm trying to delete from my CF based on non key column criteria; so :
DELETE from USERS where firstName = 'Alex'
(firstName is not the key)
I see that delete only accepts keys in the where clause (with cql); so hence thought I should first select all key values where firstName = 'Alex' and then pass those to a subsequent delete ...
DELETE from USERS where uuid in ([1,2,3,4,]);
Is this the way to go about doing this and if so would anyone be able to help me out with a small bit of javascript by way of an example pls ?
Yours hopefully,
Alex