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

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.