/v1/apps/{app_id}AuthDelete an app permanently
Path parameters
app_id*stringId of the app.
Response · 204
App deleted, with everything it owns (end users, sessions, roles, tenants and their members, invites, API keys, M2M clients, signing keys, custom domains, webhooks, agent access and its own audit log). The workspace audit log keeps one `auth.app.deleted` row.
Example
Request
DELETE https://api.auth.productcraft.co/v1/apps/{app_id}
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
await auth.apps.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");auth.apps.delete(appId, options?): void