craphunter
craphunter

Reputation: 830

Simple way to delete users account?

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

Answers (2)

Kaleb Brasee
Kaleb Brasee

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

S K
S K

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

Related Questions