src/methods/DELETE.js
'use strict'
const have = require('../have')
module.exports = function DELETE(...args) {
const { path, options = {} } = have.strict(args, [
{ path: 'str or str arr', options: 'opt Object' },
have.argumentsObject
])
const url = this.buildUrl(path)
return this.fetchUrl(url, { ...options, method: 'DELETE' })
}