Dark Mode

Delete data in your tables using the DataStax Astra DB GraphQL API.

As needed, you can delete rows from tables.Use the delete object method to remove the rows in the table you created previously.

Prerequisites

Delete data

After adding the book "Pride and Prejudice" with an `insertbook()`, you can deletethe book using `deletebook()` to illustrate deleting data.If the call is successful there won't be a return message.

Note the use of ifExists to validate that the book exists before deleting it.

Deletion options

Similar to the option ifExists , you can delete a book using consistency , serialConsistency , or ttl , similar to insertions: