Skip to main content

deleteFunction()

Deletes a deployed Lambda function based on its 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 (constfnof functions) {
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.

See also

AltStyle によって変換されたページ (->オリジナル) /