diff --git a/packages/server/src/api/controllers/application.ts b/packages/server/src/api/controllers/application.ts index 3a370564e7..a3b08b5ff9 100644 --- a/packages/server/src/api/controllers/application.ts +++ b/packages/server/src/api/controllers/application.ts @@ -654,7 +654,9 @@ async function destroyApp(ctx: UserCtx) { await quotas.removeApp() await events.app.deleted(app) - await deleteAppFiles(appId) + if (!env.isTest()) { + await deleteAppFiles(appId) + } await removeAppFromUserRoles(ctx, appId) await cache.app.invalidateAppMetadata(devAppId)