Prerequisites
Before deleting a database, make sure you have:
- Access to HestiaCP control panel
- Admin or user ownership
⚠️ Warning: Deleting a database will permanently remove all data including tables, records, and configurations!
Method 1: Delete via HestiaCP Web Interface
Step 1: Log in to HestiaCP
https://YOUR_SERVER_IP:8083
Step 2: Navigate to DB Section
Click on DB in the top menu bar.
Step 3: Locate Database
Find the database you want to delete in the list.
Step 4: Click Delete Icon
Click the red Delete icon (trash can).
Step 5: Confirm
Click Confirm when prompted.
Method 2: Delete via SSH
ssh hxroot@YOUR_SERVER_IP -p 22
/usr/local/hestia/bin/v-delete-database admin example_db
Replace admin with username and example_db with database name.
Backup Before Deleting
Always backup important databases before deletion:
mysqldump -u username -p database_name > backup.sql
✅ Database has been deleted successfully.