Command Syntax
Prerequisites
- Administrative access to VillageSQL
- No tables using custom types from the extension
- Backup of data if extension stores custom data
Uninstall Steps
1. Check for Dependencies
Find tables using custom types from the extension:2. Uninstall the Extension
- ✅ All UDFs provided by the extension (from
mysql.func) - ✅ Custom type definitions from
villagesql.custom_types - ✅ Extension registration from
villagesql.extensions - ✅ Metadata from
villagesql.custom_columns(if no tables use it)
- ❌ The
.vebfile remains invef_dir - ❌ Expanded directories in
_expanded/remain temporarily - ❌ Table data (you must drop tables with custom types first)
Expansion directories in
_expanded/{extension}/{sha256}/ are cleaned up automatically on server restart.3. Verify Uninstall
Common Errors
| Error | Cause | Solution |
|---|---|---|
Cannot uninstall extension: types in use | Tables have columns using custom types | Query villagesql.custom_columns and drop/alter those tables |
Extension not found | Extension not installed | Verify with SELECT * FROM INFORMATION_SCHEMA.EXTENSIONS |
Optional: Remove .veb File
The.veb file remains after uninstall. To remove completely:
The .veb file can be kept safely for future reinstallation. Deleting it does not affect server performance.
Reinstalling
To reinstall an extension, useINSTALL EXTENSION again (if .veb file still exists):

