UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

21 lines 860 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.execute = execute; const helpers_1 = require("../helpers"); async function execute(i) { const credentialType = (0, helpers_1.getActiveCredentialType)(this, i); const host = await (0, helpers_1.getHost)(this, credentialType); const fullName = (0, helpers_1.extractResourceLocatorValue)(this.getNodeParameter('fullName', i)); await this.helpers.httpRequestWithAuthentication.call(this, credentialType, { method: 'DELETE', url: `${host}/api/2.1/unity-catalog/functions/${fullName}`, json: true, }); return [ { json: { success: true, message: 'Function deleted successfully', functionName: fullName }, pairedItem: { item: i }, }, ]; } //# sourceMappingURL=deleteFunction.operation.js.map