diff --git a/web/satellite/src/store/modules/bucketsStore.ts b/web/satellite/src/store/modules/bucketsStore.ts index 1f3dd8dee..f6c3deca5 100644 --- a/web/satellite/src/store/modules/bucketsStore.ts +++ b/web/satellite/src/store/modules/bucketsStore.ts @@ -98,6 +98,14 @@ export const useBucketsStore = defineStore('buckets', () => { }; state.s3ClientForDelete = new S3Client(s3Config); + + state.s3ClientForDelete.middlewareStack.add( + (next, _) => (args) => { + (args.request as { headers: {key:string} }).headers['x-minio-force-delete'] = 'true'; + return next(args); + }, + { step: 'build' }, + ); } function setEdgeCredentialsForCreate(credentials: EdgeCredentials): void {