Delete emailed contact: Difference between revisions
Vivek.dhande (talk | contribs) (Created page with "{{BC|Certified}} __FORCETOC__ <div class="col-md-12 ibox-content"> =How to delete emailed contact using CLI.= <hr> {{KB|{{WIP}}|{{ZCS 8.8}}||||}} ====Problem==== * Remo...") |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
__FORCETOC__ | __FORCETOC__ | ||
<div class="col-md-12 ibox-content"> | <div class="col-md-12 ibox-content"> | ||
=How to delete emailed contact using CLI | =How to delete emailed contact using CLI?= | ||
<hr> | <hr> | ||
{{KB|{{ | {{KB|{{ZC}}|{{ZCS 8.8}}||||}} | ||
====Problem==== | ====Problem==== | ||
* Remove any wrong emailed contact from a user account. | * Remove any wrong emailed contact from a user's account. | ||
====Solution==== | ====Solution==== | ||
* Search | * 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 -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> | ||
Note "Id" from above command output which needed in next step to remove the emailed contact. In the above example, Id is 3142". | 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 | * Delete emailed contacts using CLI by copying above mentioned "Id" in below command | ||
<pre> | <pre> | ||
$ zmmailbox -z -m account@example.com dct 3142 | $ zmmailbox -z -m account@example.com dct 3142 |
Latest revision as of 08:15, 16 November 2021
How to delete emailed contact using CLI?
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 |