const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.thanks.io/api/v2/sub-accounts/7', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));