const url = 'https://app.touchsms.com.au/api/v2/templates/1234';
const options = {method: 'DELETE', headers: {Authorization: 'Basic <credentials>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));