Reputation: 830
Is there a simple way or code to delete the account from a user? I want to delete the username, email address, first_name, last_name and the profile-data.
I do have two apps
Thanks!
Upvotes: 1
Views: 1166
Reputation: 51915
Are you looking to delete the user database record? If so, search for it then call delete:
user = User.objects.get(username='their_username')
user.delete()
Upvotes: 4
Reputation: 135
Can You Explain What kind of application you Use? If you use some kind of database with your application then simply run delete query with some specific condition
Upvotes: 0