command cdb_batchDelete tInputA


Summary

This function deletes a set of records.

Inputs

*optional parameter.

Note: To delete all the records for a given table, use "*" as key mapping to empty in place of the array of cdbRecordID keys.

BatchDelete input diagram

Additional Requirements

This API call requires internet access.

API Version

Examples

local tInputA, tOutputA, tClientsTableID, tOfficeTableID

#Table name: clients                                               #Table name: office              
#RecordIDs: 
#12345678-abcd-1234-cdef-1234567890ab                              #45678123-abcd-1234-cdef-1234567890ab
 87654321-abcd-1234-cdef-1234567890ab

put cdb_getTableID("clients") into tClientsTableID                                       
put cdb_getTableID("office") into tOfficeTableID

put empty into tInputA[tClientsTableID]["*"]
put empty into tInputA[tOfficeTableID]["45678123-abcd-1234-cdef-1234567890ab"]

put "cloud" into tInputA["cdbTarget"]

cdb_batchDelete tInputA

#Now both tables have no records inside