"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../../Class/Functional");
const _ids_1 = require("../../../../_ids");
class Delete extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['obj', 'name'],
            o: [],
        }, {
            input: {
                obj: {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_DELETE_0);
    }
    async f({ obj, name }, done, fail) {
        try {
            await obj.delete(name);
            done();
        }
        catch (err) {
            fail(err.message);
        }
    }
}
exports.default = Delete;
//# sourceMappingURL=index.js.map