Skip to content

A secure and minimal Flask API that allows users to delete their own accounts after authentication. Built with JWT, Flask-SQLAlchemy, and ready for production use.

Notifications You must be signed in to change notification settings

Talabov/Delete-user-account-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Delete User Account API

Production-ready Flask API for безопасной регистрации и удаления пользователей через REST API.
Includes rate-limiting, Docker, clean modular structure — всё для продакшена и продажи.


👉 Buy it on Gumroad

🚀 Features

  • Registration and instant user deletion via API
  • Secure password hashing (no plain passwords)
  • SQLite by default, easy to switch DB in .env
  • Rate limiting (anti-abuse)
  • Docker-ready, clean project structure
  • Simple integration (Postman, curl, любой front-end)
  • Health-check endpoint
  • Logging for audits and debugging

📦 Endpoints

POST `/register`

Request (JSON): ```json { "email": "user@mail.com", "password": "password123" } ``` Response: ```json { "message": "User registered." } ```


POST `/delete`

Request (JSON): ```json { "email": "user@mail.com", "password": "password123" } ``` Response: ```json { "message": "User deleted." } ```


GET `/health`

Always returns ```json {"status": "ok"} ```


⚡ Quick Start

Docker (recommended)

```bash docker build -t delete-user-account-api . docker run -d -p 5000:5000 --env-file .env delete-user-account-api ```

Local

```bash pip install -r requirements.txt cp .env.example .env python app.py ```


🖼️ Screenshots

Server Logs Server Startup Delete User in Postman


💡 See real examples on Gumroad or in this README.


💼 Ready-to-Use Version

You can get a ZIP version with all files, setup instructions, `.env.example`, and more:

👉 Buy it on Gumroad


📬 Contact

Need this in another stack (Node.js, Go, etc)?
Contact: talabov.ali72@gmail.com
Telegram: @talabovali

Note: Pricing may vary depending on complexity and target stack.


Ready for production and monetization. 100% tested.

About

A secure and minimal Flask API that allows users to delete their own accounts after authentication. Built with JWT, Flask-SQLAlchemy, and ready for production use.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published