Forum Discussion

John_Santana's avatar
12 years ago
Solved

Automatically deleting archived mailbox from EV to free up disk space

Hi Folks,

I've got a bunch of user mailboxes account that I need to delete from the Exchange Server 2007. I'm now using EV 9.0.4 and I'm not sure how to delete the archived content as well ?

do I have to go to EV console manually and then right click to delete the Vaulted archive or can I do it smartly with a script ?

Because with the Exchange Server mailbox, I can do the mailbox delete with Powershell.

  • I think the IDEA is already logged in the Ideas section of the forums ...  i.e. to be able to do deletes from a command line.

  • Hi John,

    Please mark the post that best solves your problem as the answer to this thread.

  • Old thread, I know, but I couldn't find a better solution to this out there.  Any way - I ended up using nircmd.exe to script out the keystrokes to delete archives in the VAC.  Deleted over a 1000 in about 20 min.  And saved some serious tendenitous from all of those clicks.  Basically, I kick off the cmd below.  You'll notice there's a little delay in the first line.  This gives me time to click on the correct archive in the VAC.  Crude, but effective.

    set counter=0
    nircmd wait 5000
    :loop
    nircmd wait 1000
    nircmd sendkey delete down
    nircmd sendkey delete up
    nircmd sendkey tab down
    nircmd sendkey tab up
    nircmd sendkey enter down
    nircmd sendkey enter up
    nircmd sendkey down down
    nircmd sendkey down up
    set /a counter=%counter%+1
    if %counter% ==7 (GOTO :exit) else (GOTO :loop)
    pause
    :exit
    pause