diff --git a/lib/index.js b/lib/index.js index 3893d41..6350253 100644 --- a/lib/index.js +++ b/lib/index.js @@ -186,10 +186,13 @@ export default class Now extends EventEmitter { } async remove (deploymentId) { + const data = { deploymentId }; + await retry(async (bail) => { if (this._debug) console.time('> [debug] /remove'); const res = await this._fetch('/remove', { - method: 'DELETE' + method: 'DELETE', + body: data }); if (this._debug) console.timeEnd('> [debug] /remove');