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

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