deleteScenario

deleteScenario

This method deletes a specific scenario by its scenarioId.

Parameters

scenarioId (string, required): The unique identifier of the scenario to delete.

Returns

A JSON object confirming the successful deletion of the scenario.

Usage Example

const axios = require('axios');

let config = {
  method: 'delete',
  maxBodyLength: Infinity,
  url: 'https://api.nexera.id/compliance/scenarios/:scenarioId',
  headers: { 
    'Accept': 'application/json', 
    'Authorization': 'Bearer <TOKEN>'
  }
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});