AfterUninstall Script
This script is executed after uninstalling an extension in EspoCRM. Its primary purpose is to clear the system cache to ensure clean removal of the extension.
Technické informace
The AfterUninstall class is located in scripts/AfterUninstall.php and provides minimal functionality:
-
Dependency Injection:
-
Loads only the
DataManagerdependency through the EspoCRM container -
Cache Management:
-
clearCache()- Clears system cache throughDataManager -
Wrapped in try-catch to prevent uninstall failures due to cache clearing issues
The script is intentionally minimal as most cleanup should be handled by EspoCRM's core uninstall process.