# Permanently delete a workspace and its owned projects



URL: /docs/reference/access/deleteWorkspace

```json
{"openapi":"3.0.3","info":{"title":"Postdot API","description":"The HTTP API for the lightweight, self-hosted Postdot publication orchestrator.","version":"0.1.0"},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Postdot API key","description":"A user-owned Postdot API key sent as `Authorization: Bearer <token>`. Its project scope is limited by the creator’s current access."},"sessionCookie":{"type":"apiKey","in":"cookie","name":"better-auth.session_token","description":"The Better Auth email/password session cookie used by the web application."}},"schemas":{}},"security":[{"bearerAuth":[]},{"sessionCookie":[]}],"tags":[{"name":"System","description":"Service health and runtime information."},{"name":"Access","description":"Instance membership and invitations."},{"name":"Projects","description":"Project lifecycle and access."},{"name":"Channels","description":"Project publication destinations."},{"name":"Posts","description":"Source posts and publication creation."},{"name":"Publications","description":"Publication workflow operations."},{"name":"Taxonomy","description":"Project categories and publication tags."},{"name":"Media","description":"Project media assets and uploads."},{"name":"Settings","description":"Instance-level runtime configuration."},{"name":"Audit","description":"Project audit history."},{"name":"Notifications","description":"Signed-in user notification inboxes with optional project context."},{"name":"Analytics","description":"Provider-neutral publication and execution analytics."},{"name":"Provider Analytics","description":"Persisted provider-owned metric observations."}],"paths":{"/api/workspaces/{workspaceId}/lifecycle":{"delete":{"operationId":"deleteWorkspace","summary":"Permanently delete a workspace and its owned projects","tags":["Access"],"security":[{"sessionCookie":[]}],"parameters":[{"name":"workspaceId","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["fingerprint"],"properties":{"fingerprint":{"type":"string","minLength":1},"cancelPending":{"type":"boolean"},"confirmName":{"type":"string"},"acknowledgeUncertain":{"type":"boolean"},"replacementWorkspaceId":{"type":"string"}}}},"application/x-www-form-urlencoded":{"schema":{"type":"object","required":["fingerprint"],"properties":{"fingerprint":{"type":"string","minLength":1},"cancelPending":{"type":"boolean"},"confirmName":{"type":"string"},"acknowledgeUncertain":{"type":"boolean"},"replacementWorkspaceId":{"type":"string"}}}},"multipart/form-data":{"schema":{"type":"object","required":["fingerprint"],"properties":{"fingerprint":{"type":"string","minLength":1},"cancelPending":{"type":"boolean"},"confirmName":{"type":"string"},"acknowledgeUncertain":{"type":"boolean"},"replacementWorkspaceId":{"type":"string"}}}}}},"responses":{"200":{"description":"Response for status 200","content":{"application/json":{"schema":{"type":"object","required":["kind","id","name","state","revision","isDefault","fingerprint","cleanupPending","changedAt","projects","counts","publications","pending","uncertain","active","members"],"properties":{"kind":{"type":"string","enum":["project","workspace"]},"id":{"type":"string"},"name":{"type":"string"},"state":{"type":"string","enum":["active","archiving","archived","deleting","deleted"]},"revision":{"type":"number"},"isDefault":{"type":"boolean"},"fingerprint":{"type":"string"},"cleanupPending":{"type":"number"},"changedAt":{"type":"number"},"projects":{"type":"array","items":{"type":"object","required":["id","name","state"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"state":{"type":"string","enum":["active","archiving","archived","deleting","deleted"]}}}},"counts":{"type":"object","patternProperties":{"^.*$":{"type":"number"}}},"publications":{"type":"object","patternProperties":{"^.*$":{"type":"number"}}},"pending":{"type":"number"},"uncertain":{"type":"number"},"active":{"type":"number"},"members":{"type":"number"}}}}}},"401":{"description":"Response for status 401","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"403":{"description":"Response for status 403","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"404":{"description":"Response for status 404","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}},"409":{"description":"Response for status 409","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}}}}},"servers":[{"url":"https://postbot.example","description":"Replace with your Postdot instance origin."}]}
```
