deleteFunction()
Deletes a deployed Lambda function based on it's name.
To retrieve a list of functions, call getFunctions()
first.
Example
ts
import {deleteFunction ,getFunctions } from '@remotion/lambda';constfunctions = awaitgetFunctions ({region : 'us-east-1',compatibleOnly : false});for (constfn offunctions ) {awaitdeleteFunction ({region : 'us-east-1',functionName :fn .functionName });}
ts
import {deleteFunction ,getFunctions } from '@remotion/lambda';constfunctions = awaitgetFunctions ({region : 'us-east-1',compatibleOnly : false});for (constfn offunctions ) {awaitdeleteFunction ({region : 'us-east-1',functionName :fn .functionName });}
Arguments
An object with the following properties:
region
The AWS region to which the function was deployed to.
functionName
The name of the function to be deleted.
Return value
Nothing. If the deletion failed, the function rejects with an error.