G2Engine Deleting Records
Deleting Records
deleteRecord
deleteRecord()
removes a record from the data repository.
deleteRecord()
can be called as many times as desired and from multiple threads at the same time.
g2_engine.deleteRecord(datasource_code, record_id, load_id)
Parameters
- datasource_code: (str) The configured data source for the record.
- record_id: (str) The RECORD_ID for the record.
- load_id: (str [optional] ) the observation load ID for the record. The value can be null.
deleteRecordWithInfo
deleteRecordWithInfo()
behaves the same as deleteRecord()
, but also returns a JSON document containing the IDs of the affected entities.
g2_engine.deleteRecordWithInfo(datasource_code, record_id, response_bytearray, load_id)
Parameters
- datasource_code: (str) The configured data source for the record.
- record_id: (str) The RECORD_ID for the record.
- response_bytearray: (bytearray) Object to store the output of the method.
- load_id: (str [optional] ) the observation load ID for the record. The value can be null.