Prune records
Prunes synced records for a given connection and model using cursor-based pagination.
What is pruning: Pruning empties the record payload while preserving the record metadata.
Cursor behavior: Records are pruned up to and including the specified cursor.
environment:records:write scope. Learn more about API key scopes.What is pruning?
Pruning empties the record payload while preserving the record metadata. This is useful for compliance requirements, ensuring Nango doesnβt hold onto your records data while maintaining the ability to track record state. The payload can be restored by re-syncing the data.Cursor behavior
Records are pruned up to and including the specifieduntil_cursor value. Use the _nango_metadata.cursor value from the record you want to prune up to.
Response
Authorizations
The secret key from your Nango environment.
Headers
The connection ID used to create the connection.
The integration ID used to create the connection (aka Unique Key).
Body
The data model to prune records from
Prune all records up to and including this cursor. Use the cursor value from _nango_metadata.cursor of the record you want to prune up to.
The variant of the model
The maximum number of records to prune in this request. Defaults to 1000.
1 <= x <= 10000Response
Successfully pruned records