Skip to content

User Account Deletion & Deactivation #99

@Annanyatiwary4

Description

@Annanyatiwary4

📌 Description

Implement functionality to allow users to delete or deactivate their DevSync accounts.

  • Delete Account: Permanently removes the user’s account and all associated data.
  • Deactivate Account: Temporarily disables the account, preventing login and usage without deleting the data.

🎯 Tasks

Frontend

  • Add UI option in the user settings/profile page for Delete and Deactivate account.
  • Confirmation modal before performing destructive actions.
  • Show clear messaging:
    • Deactivate: "Your account will be disabled until reactivated."
    • Delete: "Your account and all associated data will be permanently removed."

Backend

  • Implement API endpoints:
    • DELETE /users/{id} → Permanently delete user and data.
    • PATCH /users/{id}/deactivate → Mark account as inactive.
  • Ensure deactivated users cannot log in until reactivated.
  • Add database field isActive or similar for tracking account status.

📌 Contribution Level

Level 3 (10 Points)
Estimated Completion: 3–4 days


⚡ Guidelines

  • Confirm destructive actions with confirmation modals.
  • Ensure deleted accounts remove all personal data (GDPR-safe).
  • Keep consistent with platform’s UI theme (TailwindCSS, ShadCN UI, Aceternity UI).
  • Only logged-in users can delete/deactivate their own account.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions