packages/docs/docs/lambda/deleterender.mdx
Deletes a rendered video, audio or still and its associated metada.
import {deleteRender} from '@remotion/lambda';
const {freedBytes} = await deleteRender({
bucketName: 'remotionlambda-r42fs9fk',
region: 'us-east-1',
renderId: '8hfxlw',
});
console.log(freedBytes); // 21249541
An object with the following properties:
regionThe AWS region in which the render has performed.
bucketNameThe bucket name in which the render was stored. This should be the same variable you used for renderMediaOnLambda() or renderStillOnLambda().
renderIdThe ID of the render. You can retrieve this ID by calling renderMediaOnLambda() or renderStillOnLambda().
customCredentials?<AvailableFrom v="3.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().
forcePathStyle?<AvailableFrom v="4.0.202" />Passes forcePathStyle to the AWS S3 client. If you don't know what this is, you probably don't need it.
Returns a promise resolving to an object with the following properties:
freedBytesThe amount of bytes that were removed from the S3 bucket.