Workspace Deletion Workflow
Close a whole workspace without one click erasing everyone's work.
What it adds
An owner-only deletion flow with an explicit inventory, a recovery window, and cascading cleanup across internal and external systems.
What your agent is told to do
7
What your agent is told to do
7-
1
Restrict deletion to owners and require recent re-authentication plus typing the workspace name. This is the most destructive action in the product and should feel like it.
-
2
Show an inventory before confirming: how many members lose access, what happens to billing, how many files and records are affected, which integrations disconnect, and which shared links die.
-
3
Schedule the deletion rather than executing it. Mark the workspace as pending deletion, block access to it, notify every member and admin, and only purge after a stated recovery window.
-
4
Allow any owner to cancel during that window, and restore the workspace to exactly its previous state — not a default one.
-
5
Cancel the subscription at the point of scheduling, not at purge, so nobody pays for a workspace they have closed.
-
6
Make the purge idempotent and resumable, working in batches, so a failure halfway through can simply be re-run.
-
7
Do NOT leave external systems behind. Storage objects, search indexes, cache entries, queued jobs, and third-party resources are part of the delete, and they are what gets forgotten.
Edge cases it handles
7
Edge cases it handles
7- A member who belongs only to this workspace needs somewhere to land after the purge — decide whether their user account survives.
- Legal holds, open disputes, and retention obligations must block or delay the purge, and the requester must be told why.
- Data the customer wants must be offered as an export before the window closes, not after the records are gone.
- Shared public links must stop resolving as soon as deletion is scheduled, not at purge — access ends when the owner says it ends.
- The workspace name or slug should not be immediately reusable; hold it until the purge completes, or old links resolve to a stranger's workspace.
- External deletions can partially fail and must be retried without re-deleting what already succeeded; record progress per system.
- Very large workspaces must not attempt a single transactional delete — batch it and keep the workspace unreachable throughout.
Definition of done
9
Definition of done
9- Only an owner can delete, after re-authentication and typing the workspace name.
- An inventory of members, billing, data, integrations, and links is shown before confirmation.
- Deletion is scheduled with a stated recovery window and every member is notified.
- Cancelling within the window restores the previous state exactly.
- Billing stops when deletion is scheduled.
- The purge is batched, idempotent, and resumable, and covers storage, indexes, caches, jobs, and third-party resources.
- Shared links stop working as soon as deletion is scheduled.
- The feature matches the existing design system.
- No existing functionality is broken.
Related features
User Roles
User Roles
Not everyone should be able to do everything.
What it does
Role-based permissions, enforced on the server, with a UI that reflects them.
How it works
-
1
Define roles and their permissions in ONE place. Scattering
if user.admin?through the codebase is how authorization bugs happen. - 2 Enforce every permission server-side, at the controller or service layer.
- 3 Hide UI the user can't use — but never rely on hiding as the enforcement.
Copy the prompt
No account needed
Add this feature to my app:
https://addthisfeature.com/x/user-roles
Domain Verification
Domain Verification
Prove an organization controls a domain before unlocking domain-wide powers.
What it does
A DNS or file-based challenge that verifies domain ownership and gates features like enforced SSO and domain-wide join.
How it works
- 1 Generate a unique, unguessable token per organization and domain, and verify it via a DNS TXT record or a file served over HTTPS at a fixed path.
- 2 Check the challenge server-side from the app's own infrastructure. A verification the browser performs can be faked.
- 3 Re-check verified domains on a schedule and mark a domain unverified when the evidence disappears, rather than trusting a one-time pass forever.
Copy the prompt
No account needed
Add this feature to my app:
https://addthisfeature.com/x/domain-verification
Account Settings
Account Settings
One place for a user to manage themselves.
What it does
Profile, email, password, and account deletion — the settings every app needs.
How it works
- 1 Group settings into sections: profile, security, notifications, danger zone.
- 2 Changing an email address must be verified at the NEW address before it takes effect.
- 3 Changing a password must require the current password, and should invalidate other sessions.
Copy the prompt
No account needed
Add this feature to my app:
https://addthisfeature.com/x/account-settings
How it works
-
1
Copy the link
Grab the Markdown instruction URL for this feature.
-
2
Give it to your AI
Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.
-
3
It inspects, then implements
Your agent reads your existing app first, then adds the feature to fit it.
Works with your stack
These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.
Need it tighter than that? Customize the feature and tell it exactly what you're running.