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 ...A script to delete notifications?A script to delete notifications?
New Post
1/7/2015 3:53 PM


As like most I have had problems with spam etc.

I have managed to remove all the users etc and stop the spam but is there a script to delete all the notifications?

I have over 15564 to remove from one for example I have quiet a few to sort out

if someone has already asked this then I am sorry but the search was just hanging for me

New Post
1/14/2015 7:20 PM
Simon, can you more specific as to what you mean by 'notifications'?
New Post
1/16/2015 11:17 AM
I have the same problem as Simon... My SuperUser Account has 519 notifications of SPAM logins. I have used the 'delete all 'Unathorised Users' from the portal using that facility in Admin>>User Accounts.
I then deleted all these users with the excellent script from Sebastian Leupold (ref: as the 'Remove all deleted Users' in the Admin>>User Accounts produced an error. (probably related to the large number of accounts to be deleted as I later deleted another 5 and that worked).

That left me with the Notifications. The DNN framework allows me to delete one at a time (Probably taking me about 4 days :) ) , but a script or a method to tag all notifications, then delete - would be useful.

New Post
1/16/2015 11:40 AM
... I've just resolved the Notifications issue.
Simply delete all entries in the 'CoreMessaging_Messages' table with entries of types 7 and 16. ... It can take quite a while :)

New Post
1/16/2015 5:27 PM
You need to be careful with trying to delete a large number of users because it will generally fail. You also need to be careful with deleting the users only from the database as this leaves behind the user folders.

I have a blog post here about removing users :

Deleting the notifications as you have done is fine, and probably the best way to do it.
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...A script to delete notifications?A script to delete notifications?

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?