Results 1 to 4 of 4

Thread: Mass deletion of appointments

Threaded View

  1. #1
    Join Date
    Sep 2010
    Posts
    30
    Rep Power
    5

    Default Mass deletion of appointments

    Hello everyone,

    running ZCS 8.0.2, how can I mass delete appointments quickly? I have extracted a list of appointments to delete using

    Code:
    # zmmailbox -z -m USER-ID-HERE search -l 1000 -t appointment in:Calendar > ids2delete
    
    # cat ids2delete
             Id  Type   From                  Subject                                             Date
          -----  ----   --------------------  --------------------------------------------------  --------------
       1. 10104  appo   <na>                  some-text                                           03/01/13 12:30
       2. 10060  appo   <na>                  some-other-text                                   03/04/13 15:00
       3. 10094  appo   <na>                  blabla                                                03/01/13 10:00
    Then, with some awk magic I made my list which looks like this

    Code:
    # cat ids2delete
    deleteItem 10104
    deleteItem 10060
    deleteItem 10094
    [...another 600 lines...]
    So finally I wanted to

    Code:
    zmmailbox -z -m USER-ID-HERE -f ids2delete
    This results in tons of these:

    Code:
    mbox USER-ID-HERE> ERROR: service.FAILURE (system
    failure: error while proxying request to target server: HTTP/1.1 503 Service
    Unavailable) (cause: com.zimbra.common.service.ServiceException error while
    proxying request to target server: HTTP/1.1 503 Service Unavailable)
    mbox USER-ID-HERE> ERROR: service.FAILURE (system
    failure: error while proxying request to target server: HTTP/1.1 503 Service
    Unavailable) (cause: com.zimbra.common.service.ServiceException error while
    proxying request to target server: HTTP/1.1 503 Service Unavailable)
    mbox USER-ID-HERE> ERROR: service.FAILURE (system
    failure: error while proxying request to target server: HTTP/1.1 503 Service
    Unavailable) (cause: com.zimbra.common.service.ServiceException error while
    proxying request to target server: HTTP/1.1 503 Service Unavailable)
    What's wrong here?
    Running a for loop against zmmailbox like

    Code:
    while read ID; do
    zmmailbox -z -m USER-ID-HERE deleteItem $ID
    done < ids2delete
    works fine. But this is going to take years to complete... (yes, in this case the file ids2delete only contains the IDs, without preceding "deleteItem ").

    Please advice what can be done better.

    Thanks,
    Andre
    Last edited by Alphaphi; 03-01-2013 at 05:37 AM.

Similar Threads

  1. Account Deletion
    By tellis in forum General Questions
    Replies: 3
    Last Post: 04-30-2010, 07:57 AM
  2. [SOLVED] Mass deletion from calendar
    By chauvetp in forum Administrators
    Replies: 3
    Last Post: 10-03-2008, 11:35 AM
  3. Message deletion
    By jlockhar in forum Zimbra Mobile
    Replies: 1
    Last Post: 08-17-2007, 02:57 PM
  4. Junk Box Deletion
    By kollross in forum Administrators
    Replies: 7
    Last Post: 07-06-2006, 09:27 PM
  5. Preventing deletion
    By billybofh in forum Administrators
    Replies: 15
    Last Post: 04-06-2006, 12:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •