Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesThe proper way to create DNN user from codeThe proper way to create DNN user from code
Previous
 
Next
New Post
11/23/2010 4:07 AM
 
From the Admin --> Users, I deleted a user. The Users page itself won't show the deleted user (even in the table the deleted user still exist). DNN do not permanently delete a user. Just flag the isDeleted field into 1. This is the problem when UserController.GetUserByName always returning UserInfo object. :( Why DNN do not permanently delete when SuperUser delete a user from Admin --> Users menu?
 
New Post
11/23/2010 4:37 AM
 
"user soft delete" is a new feature in DNN 5, which still hasn't been completed. I will post a cleanup script later today (when I am in my office).

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/23/2010 4:53 AM
 
Thank you sebastian for your time and help. I don't know if DNN has "user soft delete" feature. Can't waiting for your script. This is really helpful. Thank you.
 
New Post
11/26/2010 2:26 AM
 
Found the script for hard delete. This is the script :

delete userroles where userid=(select top 1 userid from userportals where isdeleted=1 and userid not in (select userid from userportals where isdeleted=0))
 
delete userprofile where userid=(select top 1 userid from userportals where isdeleted=1 and userid not in (select userid from userportals where isdeleted=0))
 
delete aspnet_membership where userid=( select userid from aspnet_users where username=(select username from users where userid=(select top 1 userid from userportals where isdeleted=1 and userid not in (select userid from userportals where isdeleted=0))))
 
delete aspnet_users where username=(select username from users where userid=(select top 1 userid from userportals where isdeleted=1 and userid not in (select userid from userportals where isdeleted=0)))
delete userportals where userid=(select top 1 userid from userportals where isdeleted=1 and userid not in (select userid from userportals where isdeleted=0))
 
delete users where userid not in (select userid from userportals) and issuperuser=0

Problem solved!

Thank you for all your contribution. It helps me a lot.

Regards,
Agung
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesThe proper way to create DNN user from codeThe proper way to create DNN user from code


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out