Delete Items from NoSQL Table

You can delete items from a NoSQL table in Catalyst by identifying them using the primary keys of the table. For instance, you use just the partition key, or a combination of the partition key and sort key of the table, to identify an item.

Note: Catalyst enables you to delete a maximum of 25 items in bulk from a NoSQL table with a single SDK operation. Data can be deleted without any conditions by using the ZCNoSQLTable instance or it can be deleted with the help of ZCNoSQLDeleteHelper instance which can be used to construct the various parts of the request.

To delete data with ZCNoSQLTable Instance, the below can be used.

    
copy
//public ZCNoSQLResponseBean delete(ZCNoSQLItem key) throws Exception; table.delete(<ZCNoSQLItem>);

To delete with ZCNoSQLDeleteHelper

ZCNoSQLDeleteHelper

This class can be used to delete data from the table with conditions. This can be obtained from ZCNoSQLTable instance.

    
copy
//public ZCNoSQLDeleteHelper getDeleteHelper(ZCNoSQLItem keys) throws Exception; //public ZCNoSQLResponseBean delete() throws Exception; table.getDeleteHelper(<ZCNoSQLItem>).delete();

Other methods available in ZCNoSQLDeleteHelper

ZCNoSQLCondition

The Same conditions described above can be reused for delete. NOSQL_RETURN_VALUE

The same conditions described above can be reused for delete.

Delete with Condition and Return Value

    
copy
table.getDeleteHelper(<ZCNoSQLItem>).withCondition(<ZCNoSQLCondition>).withReturnValue(<NOSQL_RETURN_VALUE>).delete();

Last Updated 2025-06-20 16:21:48 +0530 +0530

ON THIS PAGE

RELATED LINKS

NoSQL NoSQL API