Delete an index
If you find an index is no longer required on a table column, or you need to change the index, you can delete it. All index data will be deleted along with the index schema.
mutation dropIndexBdate {
reader: dropIndex(
keyspaceName:"library",
indexName:"reader_bdate_idx"
)
}
curl --location --request POST {base_url}/api/graphql-schema \
--header "X-Cassandra-Token: $ASTRA_DB_APPLICATION_TOKEN" \
--header 'Content-Type: application/json' \
--data-raw '{"query":"mutation dropIndexBdate {\n\n reader: dropIndex(\n keyspaceName:\"library\",\n indexName:\"reader_bdate_idx\"\n )\n}","variables":{}}'
{
"data": {
"reader": true
}
}