Difference between revisions of "Delete emailed contact"

(How to delete emailed contact using CLI?)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
 
=How to delete emailed contact using CLI?=  
 
=How to delete emailed contact using CLI?=  
 
<hr>
 
<hr>
{{KB|{{WIP}}|{{ZCS 8.8}}||||}}  
+
{{KB|{{ZC}}|{{ZCS 8.8}}||||}}  
 
    
 
    
  
Line 12: Line 12:
  
 
====Solution====
 
====Solution====
* Search emailed contact which needs to be deleted using below command
+
* Search for the details of the account by running below command
 
<pre>
 
<pre>
$ zmmailbox -z -m account@example.com gact -f "Emailed Contacts" |grep -i user@example.com
+
zmmailbox -z -m account@example.com gact -f "Emailed Contacts" |grep -i -B6 "email: user@example.com"
 +
</pre>
  
 +
* The output should look like below
 +
<pre>
 
Id: 3142
 
Id: 3142
 
Folder: /Emailed Contacts
 
Folder: /Emailed Contacts
Line 23: Line 26:
 
   firstName: admin
 
   firstName: admin
 
   email: user@example.com
 
   email: user@example.com
 
 
</pre>  
 
</pre>  
  

Latest revision as of 08:15, 16 November 2021

How to delete emailed contact using CLI?


   KB 24089        Last updated on 2021-11-16  




0.00
(0 votes)


Problem

  • Remove any wrong emailed contact from a user's account.

Solution

  • Search for the details of the account by running below command
zmmailbox -z -m account@example.com gact -f "Emailed Contacts" |grep -i -B6 "email: user@example.com"
  • The output should look like below
Id: 3142
Folder: /Emailed Contacts
Date: 03/31/20 16:53
Revision: 25933
Attrs:
  firstName: admin
  email: user@example.com

Note "Id" from the above command's output which is needed in the next step to remove the emailed contact. In the above example, Id is "3142".

  • Delete emailed contacts using CLI by copying above mentioned "Id" in below command
$ zmmailbox -z -m account@example.com dct 3142



Submitted by: Vivek Dhande
Verified Against: ZCS 8.8 Date Created: 2020-05-13
Article ID: https://wiki.zimbra.com/index.php?title=Delete_emailed_contact Date Modified: 2021-11-16



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search