|
Parameter name
|
Description
|
Base Type
|
|---|---|---|
|
startDate
|
The start date, including the specified date, from which the historical data should be purged.
|
DATETIME
|
|
endDate
|
The end date, including the specified date, up to which the historical data should be purged.
|
DATETIME
|
|
immediate
|
If false, the purge runs asynchronously. The default value is false. You can set this value to true to purge synchronously.
|
BOOLEAN
|
// Params for purging stream entry data from the past year
var purgeStreamEntriesParams = {
startDate: new Date(new Date().setFullYear(new Date().getFullYear() - 1)), /* DATETIME */,
endDate: Date.now(), /* DATETIME */,
immediate: true /* BOOLEAN {"defaultValue":false} */
};
Things["TestStream"].PurgeStreamEntries(purgeStreamEntriesParams);