n8n-nodes-base
Version:
Base nodes of n8n
17 lines • 563 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.del = del;
const transport_1 = require("../../../transport");
async function del(index) {
const body = {};
const requestMethod = 'DELETE';
//meta data
const fileId = this.getNodeParameter('fileId', index);
//endpoint
const endpoint = `files/${fileId}`;
//response
await transport_1.apiRequest.call(this, requestMethod, endpoint, body);
//return
return this.helpers.returnJsonArray({ success: true });
}
//# sourceMappingURL=execute.js.map