|
<< Click to Display Table of Contents >> Raynet One Data Hub > 2025.4 > Administration and User Guide > Advanced Topics > Data API Getting Deleted Rows (Full Table) |
This endpoint retrieves all deleted rows from a result table in a single response without pagination. This is useful for processing all deletion records at once or for smaller datasets. For larger datasets, consider using the paged variant instead.
|
Note: This endpoint requires the Delta Comparison Feature to be enabled for your tenant. See Delta Comparison Feature for prerequisites and configuration details. |
GET
http://[host]:[port]/v1/ResultDatabase/table/deleted-rows/{tableName}
Parameter |
Required |
Description |
|---|---|---|
tableName |
Yes |
The name of the result table from which to retrieve deleted rows. |
Parameter |
Required |
Description |
|---|---|---|
deletedSince |
No |
Retrieve only rows deleted on or after the specified timestamp in ISO 8601 format (e.g., "2025-11-13T15:50:00"). Can be combined with deletedUntil to define a time span. |
deletedUntil |
No |
Retrieve only rows deleted before or on the specified timestamp in ISO 8601 format (e.g., "2025-11-14T15:50:00"). Can be combined with deletedSince to define a time span. |
includeMetadata |
No (default: false) |
When set to true, includes the metadata columns (__dh_md5_checksum, __dh_deletion_time) in the result set. |
Parameter |
Required |
Description |
|---|---|---|
ApiKey |
Yes |
Your API key (see Authentication and Authorization for more information). |
Accept |
Yes |
This determines the format of the data. Available supported values are:
application/json |
The response contains:
•columns: Array describing each column's name and data type.
•records: Array of deleted row data, including the row identifier and optional metadata columns.
Request:
GET /v1/ResultDatabase/table/deleted-rows/MyTable?includeMetadata=true
Response (JSON):
{
"columns": [
{ "name": "row_identifier", "type": "String" },
{ "name": "__dh_deletion_time", "type": "DateTime" },
{ "name": "__dh_md5_checksum", "type": "String" }
],
"records": [
{
"row_identifier": "100",
"__dh_deletion_time": "2025-11-12T15:52:51.69",
"__dh_md5_checksum": "4AE467A38B88AE1BD1212DECEB474159"
}
]
}
Request:
GET /v1/ResultDatabase/table/deleted-rows/MyTable?deletedSince=2025-11-13T15:50:00
Response (JSON):
{
"columns": [
{ "name": "row_identifier", "type": "String" }
],
"records": [
{ "row_identifier": "100054" }
]
}
Request:
GET /v1/ResultDatabase/table/deleted-rows/MyTable?deletedSince=2025-11-12T18:50:00&deletedUntil=2025-11-14T15:50:00
Response (CSV):
row_identifier [string]
100028
100054
•Use time filters: Apply deletedSince and deletedUntil to limit result sets and improve performance.
•Consider pagination: For tables with many deletions, use the paged variant to manage large datasets.
•Request metadata selectively: Only set includeMetadata=true when you need the additional columns to reduce response size.
•Handle empty results: The endpoint returns an empty records array if no deleted rows match the criteria.
•Getting Deleted Rows (Paged Query)