Official Plugins (Kuzzle v2.x)
Device Manager v1.x
2

This plugin is part of the Kuzzle Enterprise Plan. If you are interested, please contact us.

prunePayloads #

Delete payloads according to their age and/or validity and/or to which device model they are affiliated with.


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/_/device-manager/devices/_prunePayloads
Method: DELETE

Other protocols #

Copied to clipboard!
{
  "controller": "device-manager/device",
  "action": "prunePayloads",
  "body": {
    //
  }
}

Kourou #

Copied to clipboard!
kourou device-manager/device:prunePayloads '{
  days: <days>,
  keepInvalid: true|false,
  deviceModel: "<deviceModel>"
}'

Arguments #

  • days: The maximum age of a payload, in days (default: 7).
  • keepInvalid: If set to true, invalid payloads will not be deleted.
  • deviceModel: deviceModel name.

Response #

Returns the number of deleted payloads.