Skip to main content

Command Syntax

You must remove all columns and variables that use types from the extension before uninstalling. The uninstall process will then remove all functions and types provided by the extension.

Prerequisites

  • Administrative access to VillageSQL
  • No tables using custom types from the extension
  • Backup of data if extension stores custom data

Uninstall Steps

1. Attempt Uninstall

Run the uninstall command. If the extension has no dependencies, it will succeed immediately. If columns depend on it, the error message identifies exactly which ones:
If the extension has dependencies, you will see an error like:
Drop or alter the identified column(s), then retry:

2. Uninstall the Extension

What this removes:
  • ✅ All VDFs (functions) provided by the extension
  • ✅ Custom type definitions registered by the extension
  • ✅ Extension registration record
  • ✅ Custom column metadata for the extension
What this does NOT remove:
  • ❌ The .veb file remains in veb_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

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, use INSTALL EXTENSION again (if .veb file still exists):
See Installing Extensions for details.

Next Steps

Install Extensions

Add extensions back if needed

Managing Extensions

Monitor and troubleshoot extensions

System Reference

Query system tables