Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

delete account in flask and sqlalchemy

User.query.filter(User.id == current_user.id).delete() #DELETES THE ACCOUNT
logout_user() # LOGS THE USER OUT
return redirect # REDIRECT TO YOUR LOGIN PAGE
 
PREVIOUS NEXT
Tagged: #delete #account #flask #sqlalchemy
ADD COMMENT
Topic
Name
3+3 =