diff --git a/server/libs/infra/src/repositories/media.repository.ts b/server/libs/infra/src/repositories/media.repository.ts index 3aa7a9bf0c..0612ce03b9 100644 --- a/server/libs/infra/src/repositories/media.repository.ts +++ b/server/libs/infra/src/repositories/media.repository.ts @@ -117,6 +117,7 @@ export class MediaRepository implements IMediaRepository { .output(output) .on('error', reject) .on('end', () => fs.unlink(`${output}-0.log`)) + .on('end', () => fs.rm(`${output}-0.log.mbtree`, { force: true })) .on('end', resolve) .run(); })