const axios = require('axios'); const url = "https://statuspage-cmd.api.pinghome.io/v1/statuspage/445a5c1f-c0eb-403a-96d7-3976e5dc74ed"; axios.delete(url, { headers: { 'Authorization': 'Bearer YOUR_TOKEN' } }) .then(response => { console.log(response.data); }) .catch(error => { console.error(error); });