Skip to content

Commit

Permalink
fix(api): Make sure to remove metadata on object delete
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Dec 27, 2023
1 parent 7a4941b commit f47035e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/server/api/mutation/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineEventHandler(async (event) => {

const normalizedKey = normalizeKey(key)

await event.context.s3.removeItem(normalizedKey)
await event.context.s3.removeItem(normalizedKey, { removeMeta: true })

return { status: 'ok' }
})

0 comments on commit f47035e

Please sign in to comment.