Learn More





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 ...Unable to delete siteUnable to delete site
New Post
10/30/2015 5:41 PM

Trying to delete a site from my portal.

DNN returns the following error:

"The DELETE statement conflicted with the REFERENCE constraint "FK_TabPermission_Roles". The conflict occurred in database "DNN_AuroraNZ", table "dbo.TabPermission", column 'RoleID'. The statement has been terminated."

Can some-one please explain the issue to me and how to resolve it. DNN v7.4.1

New Post
10/30/2015 8:21 PM
How did you try to delete the portal? Did you use the Site Management page under the Host menu?

There are some previous reports of this error, so the discussion at might be of help.

I don't know if this has been resolved in more recent releases of DNN.

Also see

If you try any of these suggestions, ALWAYS MAKE A BACKUP of your installation before doing anything.

Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (
New Post
10/31/2015 4:46 PM
there is no cascading delete from roles to TabPermissions due to an existing cascade from Tabs to TabsPermissions.
You would Need to delete all Portal Tabs using SQL delete first.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

Speed up your DNN Websites with TurboDNN
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Unable to delete siteUnable to delete site

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.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?