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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Soft Delete - Hard Delete ??? HOW?!Soft Delete - Hard Delete ??? HOW?!
Previous
 
Next
New Post
5/17/2010 1:14 PM
 
DNN went to soft deleting users. Great. Now that I'm done testing a sub portal I want to delete all the bogus users.

I have read numerous posts that include SQL statements that supposedly hard delete user accounts, but none of them seem to work - actually it's more likely that I don't know enough about SQL queries to make them work!

Can anyone PLEASE provide a clear step by step set of instructions on how to completely hard delete user accounts from the DNN database? (Hint: pretend like you're teaching a newbie that knows enough to create serious havoc    ;->     )
 
New Post
5/18/2010 9:25 AM
 
Given the experience level that you have I do NOT recommend even attempting this.  There are at least the following tables that must be cleared.

Users
UserPortals
UserRoles
UserProfile
aspnet_users
aspnet_membership

Since they went soft delete there isn't a "sure-fire" way to do it and it takes a combination of delete statements and the proper process to do this safely.

-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
5/18/2010 9:30 AM
 
Mitchell,  THANKS!  That's actually what I was looking for - was the specific list of tables where the user account information hides.  I can bring up the diagrams and see how the relations flow - and this will work for the occasional one or two users, but is there a "sure-fire-silver-bullet" script that will automate this process  (one that will work and not throw syntax errors at me all the time)? 
 
New Post
7/8/2010 9:43 AM
 
Did you ever find a script or utility to do this?

Because the present approach is brain damaged. If a person unsubscribes from a portal, unless they're hard deleted, or is removed, you can't ever resubscribe them! The system INSISTS the E-mail is a duplicate.

Whoever in DNN developed this system was simply out to lunch.

rick chapman
www.softletter.com
www.saasuniversity.com
 
New Post
7/8/2010 6:07 PM
 
There are some threads on why the soft-delete approach was used rather than a hard-delete.  A soft-delete is not ideal since you can't re-use the names (or emails if you don't allow duplicates), but there were some VERY good reasons why they went with a soft-delete.


You'll have to check the older threads on the topic, but I think it has to do with all of the other modules in DNN.  Modules may store User Id's rather than the actual user information (e.g. store user id 123 and reference the DNN Users table to get the info for that user when you need it).  If a user is hard-deleted you now lose that information for user 123.  Say it was forums, where do you get the name, email, phone number for the person who submitted the post if their account has been hard-deleted.  Or a helpdesk where clients post problems.  There account is hard-deleted in DNN so all you have is user 123 submitted this ticket, but you can't get any info about them.

Sure the modules could store this info in their own tables, some do I'm sure.  But if they don't, and DNN switches to a hard-delete, you're in for a nightmare with the modules that store User Id's.

Like I mentioned, there are some good threads on the reasons they went with the soft-delete.  They give great info and reasoning behind the decisions.  I'd check there for more/better info if you need it.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Soft Delete - Hard Delete ??? HOW?!Soft Delete - Hard Delete ??? HOW?!


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