← Back to BackgroundService domain

BackgroundService.clearEvents

Clears all stored data for the service.

Domain: BackgroundService experimental

Parameters

NameTypeDescription
serviceServiceName

Example Request

{
  "id": 1,
  "method": "BackgroundService.clearEvents",
  "params": {
    "service": "service-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('BackgroundService.clearEvents', {"service": "service-value"});
console.log(result);