I have a table like this:
CREATE TABLE test.comments_by_users ( username text, comment_id timeuuid, PRIMARY KEY (username, comment_id) );
I'm trying to use Astra Rest API to delete a user comment by passing username and comment_id and it won't work. here's the request I send, it returns 204 HTTP codes but it does not delete anything.
curl -X 'DELETE' \ 'https://apps.astra.datastax.com/api/rest/v2/keyspaces/test/comments_by_user/test%2Ced8caf30-9d74-11ec-8569-7587bb715ab1' \ -H 'accept: application/json' \ -H 'X-Cassandra-Token: xxxx'
when I pass only the username it works, but that way it removes all of the user's comments.