Skip to main content

Deleting CDF Staging table data

  • April 30, 2025
  • 0 replies
  • 35 views

Forum|alt.badge.img

I am able to Delete data using python code using Primary key of the table in CDF staging/RAW. But I need help with deleting data based on where condition for columns other than primary key. I am following the below documentation for deleting based on primary key. 

Data Ingestion — cognite-sdk 7.74.5 documentation

 

 

Delete rows from table:

>>> from cognite.client import CogniteClient>>> client = CogniteClient()>>> keys_to_delete = ["k1", "k2", "k3"]>>> client.raw.rows.delete("db1", "table1", keys_to_delete)