{"id":2861,"date":"2025-07-07T12:57:55","date_gmt":"2025-07-07T12:57:55","guid":{"rendered":"https:\/\/pheonixsolutions.com\/knowledge-base\/?p=2861"},"modified":"2026-11-02T16:38:33","modified_gmt":"2026-11-02T16:38:33","slug":"how-to-remove-delete-an-email-account-via-cpanel-cli-uapi","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/","title":{"rendered":"How to remove\/delete an email account via cPanel CLI (UAPI)"},"content":{"rendered":"\n<p>Post Date: July 7 , 2025<br>Last Updated: November 22, 2026<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Introduction<\/h3>\n\n\n\n<p>Managing email accounts is a common task for cPanel server administrators. While cPanel provides a user-friendly interface for creating and managing email accounts, administrators can also perform these tasks directly from the command line using <strong>cPanel UAPI<\/strong>.<\/p>\n\n\n\n<p>The cPanel UAPI (Universal Application Programming Interface) allows administrators to manage various cPanel features through command-line commands. It is particularly useful when managing multiple email accounts, automating server administration tasks, or removing unused email addresses without accessing the cPanel interface.<\/p>\n\n\n\n<p>In this guide, you will learn how to <strong>delete an email account using cPanel UAPI from the command line<\/strong>, identify the associated cPanel username, list existing email accounts, and safely remove a specific email address.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p>Before proceeding, ensure that you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SSH access to the cPanel server.<\/li>\n\n\n\n<li>Root or appropriate administrative privileges.<\/li>\n\n\n\n<li>An active cPanel account and domain.<\/li>\n\n\n\n<li>The email address you want to delete.<\/li>\n\n\n\n<li>Basic knowledge of Linux command-line operations.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Connect to the cPanel Server via SSH<\/h2>\n\n\n\n<p>First, connect to your cPanel server using SSH with root privileges.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ssh root@server-ip-address<\/code><\/pre>\n\n\n\n<p>Replace <code>server-ip-address<\/code> with your actual server IP address.<\/p>\n\n\n\n<p>If you are already logged in as root, you can proceed to the next step.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Identify the cPanel Username<\/h2>\n\n\n\n<p>Before deleting an email account, identify the cPanel username associated with the domain.<\/p>\n\n\n\n<p>Run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -l 'DOMAIN' \/var\/cpanel\/users\/*<\/code><\/pre>\n\n\n\n<p>Replace <code>DOMAIN<\/code> with your actual domain name.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -l 'example.com' \/var\/cpanel\/users\/*<\/code><\/pre>\n\n\n\n<p>The output may look like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/var\/cpanel\/users\/example<\/code><\/pre>\n\n\n\n<p>In this example, <code>example<\/code> is the cPanel username associated with the domain.<\/p>\n\n\n\n<p><strong>Note:<\/strong> You can also verify the account&#8217;s domain mapping in WHM or the corresponding cPanel account configuration before proceeding.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: List Existing Email Accounts<\/h2>\n\n\n\n<p>Once you have identified the cPanel username, list the email accounts associated with that account using UAPI.<\/p>\n\n\n\n<p>Execute:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uapi --user=example Email list_pops<\/code><\/pre>\n\n\n\n<p>Replace <code>example<\/code> with your actual cPanel username.<\/p>\n\n\n\n<p>This command displays the email accounts configured under the specified cPanel account.<\/p>\n\n\n\n<p>Review the output and confirm that the email address you want to delete exists.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Delete the Email Account Using cPanel UAPI<\/h2>\n\n\n\n<p>To remove an email account, execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uapi --user=example Email delete_pop email=support@example.com<\/code><\/pre>\n\n\n\n<p>Replace the following values:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>example<\/code>: Your actual cPanel username.<\/li>\n\n\n\n<li><code>support@example.com<\/code>: The email address you want to delete.<\/li>\n<\/ul>\n\n\n\n<p>For example, this command removes the <code>support@example.com<\/code> email account from the cPanel account named <code>example<\/code>.<\/p>\n\n\n\n<p><strong>Important:<\/strong> Deleting an email account is a destructive operation. Its associated mailbox data may also be removed. Back up any important emails before executing this command.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Verify the Email Account Deletion<\/h2>\n\n\n\n<p>After executing the deletion command, check the UAPI response to confirm whether the operation was successful.<\/p>\n\n\n\n<p>A successful response may look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>metadata:\n  result: 1\n  version: 1\n  command: delete_pop\n  reason: OK\n  status: 1\ndata: {}<\/code><\/pre>\n\n\n\n<p>The important response fields are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>result: 1<\/code> \u2013 Indicates that the API operation completed successfully.<\/li>\n\n\n\n<li><code>status: 1<\/code> \u2013 Indicates a successful execution.<\/li>\n\n\n\n<li><code>reason: OK<\/code> \u2013 Confirms that the operation returned an OK status.<\/li>\n<\/ul>\n\n\n\n<p>You can also run the following command again to verify that the email address is no longer listed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uapi --user=example Email list_pops<\/code><\/pre>\n\n\n\n<p>If the deleted email address is no longer present, the removal has been completed successfully.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Issues and Troubleshooting<\/h2>\n\n\n\n<p>If the email account deletion command does not work as expected, check the following:<\/p>\n\n\n\n<p><strong>1. Incorrect cPanel Username<\/strong><\/p>\n\n\n\n<p>Make sure you are using the correct cPanel username associated with the domain.<\/p>\n\n\n\n<p><strong>2. Email Account Does Not Exist<\/strong><\/p>\n\n\n\n<p>Verify that the email address is listed using the <code>list_pops<\/code> command before attempting deletion.<\/p>\n\n\n\n<p><strong>3. Insufficient Permissions<\/strong><\/p>\n\n\n\n<p>Ensure that you are executing the command as root or with the required administrative privileges.<\/p>\n\n\n\n<p><strong>4. Incorrect Email Address<\/strong><\/p>\n\n\n\n<p>Check the spelling of the email address and ensure that the domain matches the intended account.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Deleting an email account through cPanel UAPI is a convenient and efficient approach for server administrators who prefer command-line management over the cPanel interface.<\/p>\n\n\n\n<p>By identifying the correct cPanel username, listing existing email accounts, and executing the <code>delete_pop<\/code> UAPI command, you can remove unwanted email accounts directly from the server terminal.<\/p>\n\n\n\n<p>Always verify the target email address and back up important mailbox data before deletion to avoid accidental data loss.<\/p>\n\n\n\n<p>Using cPanel UAPI can also simplify repetitive administrative tasks and help automate email account management across multiple cPanel accounts.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ&#8217;s<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. How can I delete an email account using cPanel CLI?<\/h3>\n\n\n\n<p>You can delete an email account using the UAPI <code>Email delete_pop<\/code> command. Run the command with the appropriate cPanel username and email address:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>uapi --user=example Email delete_pop email=support@example.com<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. How can I find the cPanel username associated with a domain?<\/h3>\n\n\n\n<p>You can identify the cPanel username by searching the domain in the cPanel user configuration files using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep 'DOMAIN' \/var\/cpanel\/users\/*<\/code><\/pre>\n\n\n\n<p>Replace <code>DOMAIN<\/code> with the actual domain name.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Does deleting an email account remove its data?<\/h3>\n\n\n\n<p>Yes. Deleting an email account permanently removes the account and its associated email data. Make sure to take any required backups before executing the command.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2026\/08\/08\/retrieve-cpanel-account-statistics-using-uapi\/\">Retrieve cPanel Account Statistics Using UAPI<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Official Articles<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/api.docs.cpanel.net\/cpanel\/introduction\">Introduction to UAPI \u2013 cPanel Documentation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/api.docs.cpanel.net\/cpanel-api-2\/cpanel-api-2-modules-email\/cpanel-api-2-functions-email-delpop\">Email::delpop \u2013 cPanel API Documentation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.cpanel.net\/cpanel\/email\/manage-email-accounts\/108\/\">Manage Email Accounts \u2013 cPanel Documentation<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Talk to Our Experts<\/h2>\n\n\n\n<p>Looking for reliable cPanel management, server administration, or infrastructure support?<\/p>\n\n\n\n<p><strong><a href=\"https:\/\/pheonixsolutions.com\/devops-cloud\/\">Pheonix Solutions<\/a><\/strong> provides technology services covering server management, cloud infrastructure, DevOps, website maintenance, and technical support.<\/p>\n\n\n\n<p>Our experts can help you manage cPanel environments, troubleshoot server issues, and maintain reliable hosting infrastructure.<\/p>\n\n\n\n<p><a href=\"https:\/\/pheonixsolutions.com\/contact\">Contact our experts<\/a> to discuss your requirements.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post Date: July 7 , 2025Last Updated: November 22, 2026 Introduction Managing email accounts is a common task for cPanel server administrators. While cPanel provides a user-friendly interface for creating and managing email accounts, administrators can also perform these tasks directly from the command line using cPanel UAPI. The cPanel UAPI (Universal Application Programming Interface) ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":6,"featured_media":4200,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[33],"tags":[5,204,205,8],"class_list":["post-2861","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-whm","tag-cpanel","tag-email","tag-uapi","tag-whm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to remove\/delete an email account via cPanel CLI (UAPI) - PheonixSolutions Knowledge-Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to remove\/delete an email account via cPanel CLI (UAPI) - PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"og:description\" content=\"Post Date: July 7 , 2025Last Updated: November 22, 2026 Introduction Managing email accounts is a common task for cPanel server administrators. While cPanel provides a user-friendly interface for creating and managing email accounts, administrators can also perform these tasks directly from the command line using cPanel UAPI. The cPanel UAPI (Universal Application Programming Interface) ..Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/\" \/>\n<meta property=\"og:site_name\" content=\"PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-07T12:57:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-02T16:38:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Removing-Email-via-cPanel-UAPI.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1672\" \/>\n\t<meta property=\"og:image:height\" content=\"941\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Saikrishna Areddy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Saikrishna Areddy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/\"},\"author\":{\"name\":\"Saikrishna Areddy\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/8a5f4b5a8e71659e5a3bbee27663d9ba\"},\"headline\":\"How to remove\\\/delete an email account via cPanel CLI (UAPI)\",\"datePublished\":\"2025-07-07T12:57:55+00:00\",\"dateModified\":\"2026-11-02T16:38:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/\"},\"wordCount\":844,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Removing-Email-via-cPanel-UAPI.png\",\"keywords\":[\"cPanel\",\"Email\",\"UAPI\",\"WHM\"],\"articleSection\":[\"WHM\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/\",\"name\":\"How to remove\\\/delete an email account via cPanel CLI (UAPI) - PheonixSolutions Knowledge-Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Removing-Email-via-cPanel-UAPI.png\",\"datePublished\":\"2025-07-07T12:57:55+00:00\",\"dateModified\":\"2026-11-02T16:38:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/8a5f4b5a8e71659e5a3bbee27663d9ba\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/#primaryimage\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Removing-Email-via-cPanel-UAPI.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/wp-content\\\/uploads\\\/2025\\\/07\\\/Removing-Email-via-cPanel-UAPI.png\",\"width\":1672,\"height\":941,\"caption\":\"Featured image showing how to delete an email account using cPanel CLI (UAPI), with a terminal command and email deletion illustration.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2025\\\/07\\\/07\\\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to remove\\\/delete an email account via cPanel CLI (UAPI)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\",\"name\":\"PheonixSolutions Knowledge-Base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/8a5f4b5a8e71659e5a3bbee27663d9ba\",\"name\":\"Saikrishna Areddy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g\",\"caption\":\"Saikrishna Areddy\"},\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/author\\\/saikrishna\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to remove\/delete an email account via cPanel CLI (UAPI) - PheonixSolutions Knowledge-Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/","og_locale":"en_US","og_type":"article","og_title":"How to remove\/delete an email account via cPanel CLI (UAPI) - PheonixSolutions Knowledge-Base","og_description":"Post Date: July 7 , 2025Last Updated: November 22, 2026 Introduction Managing email accounts is a common task for cPanel server administrators. While cPanel provides a user-friendly interface for creating and managing email accounts, administrators can also perform these tasks directly from the command line using cPanel UAPI. The cPanel UAPI (Universal Application Programming Interface) ..Read more","og_url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/","og_site_name":"PheonixSolutions Knowledge-Base","article_published_time":"2025-07-07T12:57:55+00:00","article_modified_time":"2026-11-02T16:38:33+00:00","og_image":[{"width":1672,"height":941,"url":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Removing-Email-via-cPanel-UAPI.png","type":"image\/png"}],"author":"Saikrishna Areddy","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Saikrishna Areddy","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/"},"author":{"name":"Saikrishna Areddy","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/8a5f4b5a8e71659e5a3bbee27663d9ba"},"headline":"How to remove\/delete an email account via cPanel CLI (UAPI)","datePublished":"2025-07-07T12:57:55+00:00","dateModified":"2026-11-02T16:38:33+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/"},"wordCount":844,"commentCount":0,"image":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/#primaryimage"},"thumbnailUrl":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Removing-Email-via-cPanel-UAPI.png","keywords":["cPanel","Email","UAPI","WHM"],"articleSection":["WHM"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/","name":"How to remove\/delete an email account via cPanel CLI (UAPI) - PheonixSolutions Knowledge-Base","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/#primaryimage"},"thumbnailUrl":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Removing-Email-via-cPanel-UAPI.png","datePublished":"2025-07-07T12:57:55+00:00","dateModified":"2026-11-02T16:38:33+00:00","author":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/8a5f4b5a8e71659e5a3bbee27663d9ba"},"breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/#primaryimage","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Removing-Email-via-cPanel-UAPI.png","contentUrl":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Removing-Email-via-cPanel-UAPI.png","width":1672,"height":941,"caption":"Featured image showing how to delete an email account using cPanel CLI (UAPI), with a terminal command and email deletion illustration."},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2025\/07\/07\/how-to-remove-delete-an-email-account-via-cpanel-cli-uapi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"How to remove\/delete an email account via cPanel CLI (UAPI)"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/","name":"PheonixSolutions Knowledge-Base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/knowledge-base\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/8a5f4b5a8e71659e5a3bbee27663d9ba","name":"Saikrishna Areddy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/219fb50fa61a168b58a5e704d05058f958504aa8324675172185e3f0e8b3fd24?s=96&d=mm&r=g","caption":"Saikrishna Areddy"},"url":"https:\/\/pheonixsolutions.com\/knowledge-base\/author\/saikrishna\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-content\/uploads\/2025\/07\/Removing-Email-via-cPanel-UAPI.png","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=2861"}],"version-history":[{"count":5,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2861\/revisions"}],"predecessor-version":[{"id":4201,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/2861\/revisions\/4201"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/media\/4200"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=2861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=2861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=2861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}