src/utilities/http.js
function DELETE(uri, params) {
	const requestURL = `${uri}${url.format({ query: params })}`;
  log(`request URL: ${requestURL}`);

	return fetch(requestURL, { method: 'DELETE', compress: compress })
    .then(function handleRequest(res) {
      const statusText = res.statusText;
			const status = res.status;
			if (status != 200) {
				const error = new Error(`Request failed: ${statusText}`);
				error.status = status;
				throw error;
			}
			return res.json();
		})
		.catch(error => {
			log(`error: ${error}`);
			throw error;
		});
}
function DELETE(uri, params) {
	const requestURL = `${uri}${url.format({ query: params })}`;
  log(`request URL: ${requestURL}`);

	return fetch(requestURL, { method: 'DELETE', compress: compress })
    .then(function handleRequest(res) {
      const statusText = res.statusText;
			const status = res.status;
			if (status != 200) {
				const error = new Error(`Request failed: ${statusText}`);
				error.status = status;
				throw error;
			}
			return res.json();
		})
		.catch(error => {
			log(`error: ${error}`);
			throw error;
		});
}
function DELETE ( uri , params ) { const requestURL = ` ${ uri } ${ url . format ( { query : params } ) } ` ; log ( ` ${ requestURL } ` ) ; return fetch ( requestURL , { method : 'DELETE' , compress : compress } ) . then ( function handleRequest ( res ) { const statusText = res . statusText ; const status = res . status ; if ( status != 200 ) { const error = new Error ( ` ${ statusText } ` ) ; error . status = status ; throw error ; } return res . json ( ) ; } ) . catch ( error => { log ( ` ${ error } ` ) ; throw error ; } ) ; }
Use this functions for HTTP DELETE requst

@param {String} uri    - request URL
@param {Object} params - request parameters
@return {Promise}  HTTP response
Use this functions for HTTP DELETE requst