I'm not sure what version of Unity you are running but suggest taking a look at the System Administration Guide for the version you run. Here is a link to the guide for 10.x. "Users" section will explain how to delete and how to create a mailbox.
Hi, Erwin. Yes the steps are the same but here is the link to 11.x of Unity:
++ Delete Voicemails of a Particular User:
From Webpage: Login to web-inbox(example: 10.1.2.3/inbox) using user credential(whose voicemail is supposed to be deleted). then you can delete individual voicemails one by one.
To Mark the messages to deletion from 1st February 2012 (6 AM) to 1st July 2013 (6 AM) for a user with alias "dkumar9",
admin:run cuc dbquery unitymbxdb1 update tbl_FolderItem set deleted = 1 where arrivaltime between '2012-02-01 06:00:00' and '2013-07-01 06:00:00' and folderobjectid = (select folderobjectid from tbl_folder where mailboxobjectid= (select mailboxobjectid from vw_mailbox where description='dkumar9') and folderinfoobjectid = (select folderinfoobjectid from tbl_folderinfo where name='Inbox'))
++ Delete Voicemail of "All Users"
To Mark the messages to deletion which arrived between Jan 2012 to Jan 2013:
admin:run cuc dbquery unitymbxdb1 update tbl_FolderItem set deleted = 1 where arrivaltime between '2012-01-01 00:00:00' and '2013-01-01 00:00:00'
++ Finally, run the aging policy task to delete all messages which were marked for deletion permanently from unity:
admin:run cuc sysagent task Umss.MessageAgingTask
Erwin, make sure that you have web inbox enabled in your COS (class of service).
Class of Service - Class of Service - <name of COS> - Licensed Features - Allow Users to Use the Web Inbox and RSS Feeds
If this is not checked then you will get a "Message access not enabled" message.
With that being said you may be able to get to a users mailbox in a roundabout way. We do not have web inbox enabled so I cannot test 100% but I am able to do this:
Query user in Unity Admin - go to User Basics for desired user - Edit - Private Distribution Lists (this will open a new window/tab for PCA) - edit the URL from "IP (or FQDN)/ciscopca" to "IP (or FQDN)/inbox"
Since we do not have inbox enabled I am not able to see messages but in the inbox if I click on "Settings" at the top it takes me to PCA for the user I was querying in Unity Admin. In theory this should work for you to get to an individual users mailbox but will have to defer to somebody that may have inbox enabled in their environment.
Since this seems to have dragged on for ages, can I suggest something that will empty the mailboxes in a couple of days?
From CUC Admin go into "Message Storage / Message Aging / Aging Policies"
Create a new policy, I call mine "Fast Aging Policy" and set this to purge stuff over a few days. Then apply this policy to the mailboxes you want to empty, and in a few days all their messages will be gone. Remember to change back to your default policy.