Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: [SOLVED] Mass delete calendar entries

  1. #1
    Join Date
    Nov 2005
    Posts
    96
    Rep Power
    9

    Default [SOLVED] Mass delete calendar entries

    Hi,

    Can zimbra 3.1.3 do mass delete calendar entries?

    adrian

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default You can empty the calendar folder...

    For a given user, you can send the server a request to empty the Calendar folder. Would that do what you want?
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Nov 2006
    Location
    Japan
    Posts
    51
    Rep Power
    9

    Default Great. How?

    This sounds great, but is it implemented yet? If so, where can we find directions on how to do this? (Outlook Importer errored out while importing several thousand calendar entries and each retry resulted in multiple duplicates)

    Using v 4.0.3

  4. #4
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    Default

    be *very* careful, as this will delete any items and sub-folders under a directory:

    Code:
     /opt/zimbra/bin/zmprov 
    prov> sm user1@macpro.local
    mailbox: user1@macpro.local, size: 7.39 MB, messages: 296, unread: 242
    mbox user1@macpro.local> emptyFolder /contacts
    Replace "sm user1@macpro.local" with "sm {account-you-want-to-use}".

    You can also do this all on the command line if you want:
    Code:
    /opt/zimbra/bin/zmprov sm user1@macpro.local emptyFolder /contacts
    Again, be very careful!
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    Join Date
    Nov 2006
    Location
    Japan
    Posts
    51
    Rep Power
    9

    Default And for the main calendar...

    So for the main calendar folder that would be:

    emptyFolder /calendar

    ?

    Thanks

  6. #6
    Join Date
    Aug 2005
    Posts
    228
    Rep Power
    10

    Default

    Oops, I read that as contacts. Yes, I think that should do it, but I've never tried it with a calendar folder.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  7. #7
    Join Date
    Jun 2007
    Location
    Brooklyn, NY
    Posts
    9
    Rep Power
    8

    Default

    I just tried it as I had a similar issue. Worked perfectly with the calendar.

    Ron

  8. #8
    Join Date
    Nov 2006
    Location
    Bordeaux, France
    Posts
    140
    Rep Power
    9

    Default

    and is there a way to wipe only old appointements (those that are 1 year old and more for example ?)

  9. #9
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default zmmailbox scripting

    You'd probably have to do a search via zmmailbox, then use zmmailbox to delete the results of the search by ID.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  10. #10
    Join Date
    Aug 2007
    Location
    Yorba Linda, CA
    Posts
    89
    Rep Power
    8

    Default

    Perfect! Just what I was needing for one of my users! Thanks!

Similar Threads

  1. Remove old calendar entries
    By bibo in forum Administrators
    Replies: 2
    Last Post: 07-12-2007, 04:57 AM
  2. Calendar entries are uneditable after username change.
    By Guest6400 in forum Administrators
    Replies: 2
    Last Post: 06-11-2007, 10:18 AM
  3. Calendar entries uneditable...
    By Guest6400 in forum Administrators
    Replies: 2
    Last Post: 03-30-2007, 04:57 PM
  4. Outlook/Zimbra Private Appointments Issue
    By Smurthey in forum Zimbra Connector for Outlook
    Replies: 0
    Last Post: 03-09-2007, 07:29 AM
  5. Replies: 3
    Last Post: 08-03-2006, 05:10 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
  •