Prerequisites
Before deleting an email account, make sure you have:
- Access to HestiaCP control panel
- Admin or user ownership of the email account
⚠️ Warning: Deleting an email account will permanently remove all emails in that mailbox!
Method 1: Delete via HestiaCP Web Interface
Step 1: Log in to HestiaCP
https://YOUR_SERVER_IP:8083
Step 2: Navigate to MAIL Section
Click on MAIL in the top menu bar.
Step 3: Select Your Domain
Click on the domain containing the email account.
Step 4: Locate the Email Account
Find the email account in the list.
Step 5: Click Delete Icon
Click the red Delete icon (trash can) next to the account.
Step 6: Confirm Deletion
Click Confirm when prompted.
Method 2: Delete via SSH Command Line
ssh hxroot@YOUR_SERVER_IP -p 22
/usr/local/hestia/bin/v-delete-mail-account admin example.com info
Replace admin with username, example.com with domain, and info with email prefix.
Delete Multiple Email Accounts
Script to delete multiple accounts:
for account in info sales support; do
/usr/local/hestia/bin/v-delete-mail-account admin example.com $account
done
✅ Email account has been deleted successfully.