[Fixed]-Django remove user from all groups

27👍

I don’t know what is the SQL, but you can use the clear method:

user.groups.clear()

Leave a comment