function _httpDelete( wpreq, data ) {
	const config = {
		method: 'DELETE',
		headers: {
			'Content-Type': 'application/json',
		},
		redirect: 'follow',
	};

	if ( data ) {
		config.body = JSON.stringify( data );
	}

	return send( wpreq, config );
}
@method delete
@async
@param {WPRequest} wpreq A WPRequest query object
@param {Object} [data] Data to send along with the DELETE request
@returns {Promise} A promise to the results of the HTTP request