mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 19:25:16 +00:00
14 lines
324 B
JavaScript
Executable File
14 lines
324 B
JavaScript
Executable File
import * as fx from "m3o/function";
|
|
|
|
// Delete a function by name
|
|
async function DeleteAfunction() {
|
|
let functionService = new fx.FunctionService(process.env.MICRO_API_TOKEN);
|
|
let rsp = await functionService.delete({
|
|
name: "my-first-func",
|
|
project: "tests",
|
|
});
|
|
console.log(rsp);
|
|
}
|
|
|
|
await DeleteAfunction();
|