Přeskočit na hlavní obsah

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 DataManager dependency through the EspoCRM container

  • Cache Management:

  • clearCache() - Clears system cache through DataManager

  • 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.