prunePayloads #
Delete payloads according to their age and/or validity and/or to which device model they are affiliated with.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/device-manager/devices/_prunePayloads
Method: DELETEOther protocols #
{
  "controller": "device-manager/device",
  "action": "prunePayloads",
  "body": {
    //
  }
}Kourou #
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 totrue, invalid payloads will not be deleted.deviceModel: deviceModel name.
Response #
Returns the number of deleted payloads.