import { platformApi } from '~~/server/utils/platform-api'

export default defineEventHandler(async (event) => {
  const key = getRouterParam(event, 'key')
  await platformApi(event, `/flags/${key}`, { method: 'DELETE' })
  return { ok: true }
})
