This method deletes previously imported data.
Parameters
Name | Type | Description |
---|---|---|
datasource | String | The name of the datasource to delete data from |
tablename | String | The name of the table to delete data from |
keepNVersions | Integer | The number of most recent versions to keep. For example if there are five versions of the data (numbered 1 to 5) and |
keepNDays | Integer | Deletes any versions older than this number of days |
Note that if you set both
Example
This example deletes all but the most recent version of the data in the named table.
{
"id": 1234567,
"method": "purgeImportData",
"params": {
"tablename": "di_stars11",
"keepNVersions": 1
},
"jsonrpc": "2.0"
}
Last modified on September 05, 2022