deleteRender()
Deletes a rendered video, audio, still, or image sequence and its associated metadata and separated audio.
import {deleteRender } from '@remotion/lambda';
const {freedBytes } = await deleteRender ({
bucketName : 'remotionlambda-r42fs9fk',
region : 'us-east-1',
renderId : '8hfxlw',
});
console .log (freedBytes ); // 21249541Arguments
An object with the following properties:
region
The AWS region in which the render has performed.
bucketName
The bucket name in which the render was stored. This should be the same variable you used for renderMediaOnLambda() or renderStillOnLambda().
renderId
The ID of the render. You can retrieve this ID by calling renderMediaOnLambda() or renderStillOnLambda().
customCredentials?v3.2.23
If the render was saved to a different cloud, pass an object with the same endpoint, accessKeyId and secretAccessKey as you passed to renderMediaOnLambda() or renderStillOnLambda().
separateAudioCredentials?v4.0.535
Credentials for a separate audio output saved to a different S3-compatible provider. Pass the same endpoint, accessKeyId and secretAccessKey as in separateAudioTo.s3OutputProvider. Defaults to customCredentials when omitted.
forcePathStyle?v4.0.202
Passes forcePathStyle to the AWS S3 client. If you don't know what this is, you probably don't need it.
Return value
Returns a promise resolving to an object with the following properties:
freedBytes
The amount of bytes that were removed from the S3 bucket.