Files
services/examples/function/delete/node/deleteAFunction.js

14 lines
332 B
JavaScript
Executable File

const { FunctionService } = require("m3o/function");
// Delete a function by name
async function deleteAfunction() {
let functionService = new FunctionService(process.env.MICRO_API_TOKEN);
let rsp = await functionService.delete({
name: "my-first-func",
project: "tests",
});
console.log(rsp);
}
deleteAfunction();