Skip to main content
DELETE
/
v1
/
simulation
/
scenario
/
{scenarioId}
JavaScript
import Roark from '@roarkanalytics/sdk';

const client = new Roark({
  bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted
});

const simulationScenario = await client.simulationScenario.delete('scenarioId');

console.log(simulationScenario.data);
{
  "data": {
    "deleted": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

scenarioId
string
required

The ID of the scenario to delete

Response

Scenario deleted successfully

data
object
required