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 ...Still have users left in dbo.Users after hard delete from DNN User APIStill have users left in dbo.Users after hard delete from DNN User API
Previous
 
Next
New Post
10/18/2015 10:40 AM
 

We're showing 1 page of users in our site after hard-deleting via the API -- that is, using the 'X' after deleting a user with the trash can icon.

The 1 page shows 13 users but we have 240 in dbo.Users.  It is possible this is orphaned content -- we've done a few restore, retest, etc. iterations.

Since the API only shows 13 Users, and I already know deletion of Users via SSMS triggers a Cascading Delete, I should just be able to zap 227 users by a simple

DELETE

 FROM dbo.Users

 WHERE UserId NOT IN (the 13 Ids we need)

Is there anyplace else I need to check for orphaned data?  perhaps in any files/folders set up for these users, etc.?

since there may be a script for this, please let me know if there is one.  As I have a full restore point for this database, I'll proceed with removing users with the above script since I can restore everything.  I'll check forum replies and if anything else is needed I'll just go back to our baseline and include it.

Thanks!

 
New Post
10/18/2015 10:58 AM
Accepted Answer 

I will resolve my own ticket.

There are many tables in the DNN database that depend on the users table -- checked with a friend of mine on this.  227 extra users is nothing and its best to leave them in place.  They won't show on the User Accounts and any future created users will function as expected so there's no purpose in "baselining" the table, if that's a right word.

 
New Post
10/18/2015 2:10 PM
 
tables of DNN Core Framework should not be affected but 3rd party modules might place FKs although they shouldn't.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Still have users left in dbo.Users after hard delete from DNN User APIStill have users left in dbo.Users after hard delete from DNN User API


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